Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009728/0.0009728, allocations: 183.7 kB / 8.48 MB, free: 1.887 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.084/1.084, allocations: 205.2 MB / 214.1 MB, free: 1.84 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007896/0.0007897, allocations: 87.38 kB / 262.1 MB, free: 1.793 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.422e-06/6.632e-06, allocations: 4 kB / 315 MB, free: 23.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07248/0.0725, allocations: 47.58 MB / 362.6 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2672/0.3398, allocations: 114.9 MB / 477.4 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.3401, allocations: 79.27 kB / 477.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.0975/0.4376, allocations: 38.62 MB / 0.504 GB, free: 12.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.119e-05/0.4377, allocations: 39.94 kB / 0.5041 GB, free: 12.12 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.002674/0.4404, allocations: 1.549 MB / 0.5056 GB, free: 10.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.4404, allocations: 8.031 kB / 0.5056 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007497/0.4412, allocations: 257.6 kB / 0.5058 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.4431, allocations: 1.071 MB / 0.5069 GB, free: 9.145 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.4432, allocations: 44 kB / 0.5069 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.4433, allocations: 95.91 kB / 0.507 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001551/0.4449, allocations: 0.8026 MB / 0.5078 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.4469, allocations: 1.14 MB / 0.5089 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/0.447, allocations: 7.906 kB / 0.5089 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.771e-05/0.4471, allocations: 3.938 kB / 0.5089 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.894e-05/0.4471, allocations: 40 kB / 0.509 GB, free: 6.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007871/0.455, allocations: 5.943 MB / 0.5148 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007451/0.4558, allocations: 315.6 kB / 0.5151 GB, free: 412 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003484/0.4561, allocations: 210.1 kB / 0.5153 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.253e-05/0.4562, allocations: 4.438 kB / 0.5153 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.4562, allocations: 39 kB / 0.5153 GB, free: 144 kB / 394.7 MB Notification: Performance of pre-optimization done (n=51): time 3.747e-06/0.4562, allocations: 3.984 kB / 0.5153 GB, free: 140 kB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.002208/0.4585, allocations: 1.268 MB / 0.5165 GB, free: 14.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.4585, allocations: 81.55 kB / 0.5166 GB, free: 14.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.4597, allocations: 0.8129 MB / 0.5174 GB, free: 13.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.4597, allocations: 25.7 kB / 0.5174 GB, free: 13.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.4601, allocations: 0.6604 MB / 0.5181 GB, free: 13.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.4603, allocations: 201.1 kB / 0.5183 GB, free: 12.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.4603, allocations: 0 / 0.5183 GB, free: 12.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.4605, allocations: 341.9 kB / 0.5186 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.4608, allocations: 190 kB / 0.5188 GB, free: 12.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.4614, allocations: 0.5723 MB / 0.5193 GB, free: 11.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004756/0.4619, allocations: 287 kB / 0.5196 GB, free: 11.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.4619, allocations: 4 kB / 0.5196 GB, free: 11.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001384/0.4633, allocations: 0.8239 MB / 0.5204 GB, free: 10.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001822/0.4651, allocations: 5.12 MB / 0.5254 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.4651, allocations: 16 kB / 0.5254 GB, free: 5.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.4653, allocations: 40.78 kB / 0.5255 GB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008767/0.4662, allocations: 235.6 kB / 0.5257 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009764/0.4672, allocations: 1.244 MB / 0.5269 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/0.4679, allocations: 35.98 kB / 0.5269 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/0.468, allocations: 51.98 kB / 0.527 GB, free: 3.324 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.062e-06/0.468, allocations: 4 kB / 0.527 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001099/0.4691, allocations: 0.6514 MB / 0.5276 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.4691, allocations: 15.94 kB / 0.5277 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.6e-05/0.4692, allocations: 41.69 kB / 0.5277 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007363/0.47, allocations: 223.7 kB / 0.5279 GB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008576/0.4708, allocations: 1.248 MB / 0.5291 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006349/0.4715, allocations: 16 kB / 0.5291 GB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.874e-05/0.4716, allocations: 44 kB / 0.5292 GB, free: 0.9688 MB / 410.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.0001909/0.4718, allocations: 152.4 kB / 0.5293 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.4719, allocations: 110.8 kB / 0.5294 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009205/0.4729, allocations: 474.8 kB / 0.5299 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.4729, allocations: 11.91 kB / 0.5299 GB, free: 220 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4729, allocations: 0 / 0.5299 GB, free: 220 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.4729, allocations: 3.984 kB / 0.5299 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.11/0.5829, allocations: 1.553 MB / 0.5314 GB, free: 152.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5829, allocations: 4.188 kB / 0.5314 GB, free: 152.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/0.5834, allocations: 111.6 kB / 0.5315 GB, free: 152.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.071e-05/0.5835, allocations: 23.67 kB / 0.5316 GB, free: 152.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.5836, allocations: 13.95 kB / 0.5316 GB, free: 152.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006051/0.5842, allocations: 1.224 MB / 0.5328 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5842, allocations: 2.875 kB / 0.5328 GB, free: 151.8 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008667/0.5851, allocations: 0.8731 MB / 0.5336 GB, free: 151.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.5854, allocations: 234.7 kB / 0.5338 GB, free: 151.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.5855, allocations: 0 / 0.5338 GB, free: 151.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.586, allocations: 34.25 kB / 0.5339 GB, free: 151.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.5861, allocations: 38.17 kB / 0.5339 GB, free: 151.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.5861, allocations: 14.62 kB / 0.5339 GB, free: 151.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0006554/0.5868, allocations: 0.5972 MB / 0.5345 GB, free: 151.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001291/0.5881, allocations: 427.9 kB / 0.5349 GB, free: 151.3 MB / 410.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.0003998/0.5885, allocations: 372.9 kB / 0.5353 GB, free: 151.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.5899, allocations: 1.118 MB / 0.5364 GB, free: 150.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5899, allocations: 0 / 0.5364 GB, free: 150.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.5902, allocations: 305 kB / 0.5367 GB, free: 150.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009763/0.5912, allocations: 222 kB / 0.5369 GB, free: 150.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.5945, allocations: 1.851 MB / 0.5387 GB, free: 150.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007696/0.5953, allocations: 1.284 MB / 0.5399 GB, free: 149.5 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5953, allocations: 0 / 0.5399 GB, free: 149.5 MB / 410.7 MB Notification: Performance of Templates: time 0.02585/0.6212, allocations: 15.75 MB / 0.5553 GB, free: 148.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches