Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001801/0.001801, allocations: 176.1 kB / 8.152 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001239/0.001238, allocations: 94.8 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.101e-05/1.116e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2392, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.4113, allocations: 114.6 MB / 476.4 MB, free: 3.414 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.4116, allocations: 79.95 kB / 476.5 MB, free: 3.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3047/0.7163, allocations: 38.62 MB / 0.503 GB, free: 102.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001202/0.7165, allocations: 44.89 kB / 0.5031 GB, free: 102.6 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003841/0.7203, allocations: 1.557 MB / 0.5046 GB, free: 101.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.7204, allocations: 11.09 kB / 0.5046 GB, free: 101.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/0.7216, allocations: 248.8 kB / 0.5049 GB, free: 101.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003063/0.7247, allocations: 1.074 MB / 0.5059 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/0.7248, allocations: 49.38 kB / 0.506 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000252/0.7251, allocations: 93.91 kB / 0.506 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002611/0.7277, allocations: 0.7964 MB / 0.5068 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003293/0.731, allocations: 1.147 MB / 0.5079 GB, free: 101.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-05/0.7311, allocations: 10.5 kB / 0.5079 GB, free: 101.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/0.7313, allocations: 3.562 kB / 0.508 GB, free: 101.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/0.7314, allocations: 41.56 kB / 0.508 GB, free: 101.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.7427, allocations: 5.928 MB / 0.5138 GB, free: 98.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.7439, allocations: 322.7 kB / 0.5141 GB, free: 98.72 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005062/0.7444, allocations: 203.2 kB / 0.5143 GB, free: 98.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.386e-05/0.7445, allocations: 11.42 kB / 0.5143 GB, free: 98.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.7445, allocations: 38.94 kB / 0.5143 GB, free: 98.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=51): time 3.005e-06/0.7445, allocations: 3.094 kB / 0.5143 GB, free: 98.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.002936/0.7475, allocations: 1.265 MB / 0.5156 GB, free: 98.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.7475, allocations: 81.42 kB / 0.5156 GB, free: 98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.7491, allocations: 0.8135 MB / 0.5164 GB, free: 97.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.7492, allocations: 25.7 kB / 0.5165 GB, free: 97.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.7495, allocations: 0.6608 MB / 0.5171 GB, free: 97.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.7496, allocations: 202.2 kB / 0.5173 GB, free: 97.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.7497, allocations: 3.688 kB / 0.5173 GB, free: 97.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.398e-05/0.7498, allocations: 342.1 kB / 0.5176 GB, free: 96.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005235/0.7503, allocations: 192 kB / 0.5178 GB, free: 96.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.7511, allocations: 0.5702 MB / 0.5184 GB, free: 96.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007052/0.7518, allocations: 293.7 kB / 0.5187 GB, free: 96.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.7518, allocations: 3.906 kB / 0.5187 GB, free: 96.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00181/0.7536, allocations: 0.7493 MB / 0.5194 GB, free: 96.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001028/0.7547, allocations: 5.129 MB / 0.5244 GB, free: 90.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.108e-05/0.7547, allocations: 11.59 kB / 0.5244 GB, free: 90.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/0.755, allocations: 43.59 kB / 0.5245 GB, free: 90.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.7565, allocations: 243.2 kB / 0.5247 GB, free: 90.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009893/0.7575, allocations: 1.228 MB / 0.5259 GB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007139/0.7583, allocations: 38.62 kB / 0.5259 GB, free: 89.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.292e-05/0.7584, allocations: 43.47 kB / 0.526 GB, free: 89.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/0.7584, allocations: 7.188 kB / 0.526 GB, free: 89.69 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.76, allocations: 0.6615 MB / 0.5266 GB, free: 89.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.76, allocations: 11.75 kB / 0.5266 GB, free: 89.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001217/0.7601, allocations: 38.11 kB / 0.5267 GB, free: 89.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.7615, allocations: 220.3 kB / 0.5269 GB, free: 89.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008335/0.7623, allocations: 1.237 MB / 0.5281 GB, free: 88.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006252/0.763, allocations: 27.91 kB / 0.5281 GB, free: 88.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.763, allocations: 49.03 kB / 0.5282 GB, free: 88.36 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002063/0.7633, allocations: 61.05 kB / 0.5282 GB, free: 88.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.7636, allocations: 110 kB / 0.5283 GB, free: 88.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.7649, allocations: 469.3 kB / 0.5288 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.7649, allocations: 10.06 kB / 0.5288 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.7649, allocations: 0 / 0.5288 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.7649, allocations: 3.469 kB / 0.5288 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.7681, allocations: 1.552 MB / 0.5303 GB, free: 87.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.7682, allocations: 0 / 0.5303 GB, free: 87.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009994/0.7692, allocations: 115.1 kB / 0.5304 GB, free: 87.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/0.7693, allocations: 21.05 kB / 0.5304 GB, free: 87.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.615e-05/0.7694, allocations: 10.36 kB / 0.5304 GB, free: 87.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008802/0.7703, allocations: 1.237 MB / 0.5316 GB, free: 86.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.7703, allocations: 0 / 0.5316 GB, free: 86.27 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0016/0.7719, allocations: 0.8831 MB / 0.5325 GB, free: 85.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.7724, allocations: 223.6 kB / 0.5327 GB, free: 85.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/0.7726, allocations: 7.844 kB / 0.5327 GB, free: 85.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009051/0.7736, allocations: 37.56 kB / 0.5328 GB, free: 85.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/0.7737, allocations: 36.62 kB / 0.5328 GB, free: 85.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.7737, allocations: 15.78 kB / 0.5328 GB, free: 85.47 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001215/0.7749, allocations: 0.5947 MB / 0.5334 GB, free: 85.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002033/0.777, allocations: 432.7 kB / 0.5338 GB, free: 85.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005591/0.7776, allocations: 357.8 kB / 0.5341 GB, free: 85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.78, allocations: 1.078 MB / 0.5352 GB, free: 84.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.78, allocations: 448 / 0.5352 GB, free: 84.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005765/0.7806, allocations: 316.9 kB / 0.5355 GB, free: 84.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/0.7825, allocations: 225.2 kB / 0.5357 GB, free: 84.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005177/0.7877, allocations: 1.857 MB / 0.5375 GB, free: 83.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/0.7888, allocations: 1.288 MB / 0.5388 GB, free: 82.61 MB / 394.7 MB Notification: Performance of SimCode: time 9.11e-07/0.7888, allocations: 0 / 0.5388 GB, free: 82.61 MB / 394.7 MB Notification: Performance of Templates: time 0.04379/0.8326, allocations: 22.67 MB / 0.5609 GB, free: 77.09 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches