Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") [: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.0009815/0.0009816, allocations: 178.9 kB / 8.477 MB, free: 1.879 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.159/1.159, allocations: 205.2 MB / 214.1 MB, free: 5.516 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.0008223/0.0008223, allocations: 90.27 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.73e-06/5.761e-06, allocations: 4 kB / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06629/0.06631, allocations: 47.57 MB / 362.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2339/0.3003, allocations: 116.5 MB / 479 MB, free: 8.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3006, allocations: 86.14 kB / 479.1 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1168/0.4175, allocations: 46.2 MB / 0.513 GB, free: 1.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001129/0.4176, allocations: 44 kB / 0.5131 GB, free: 1.82 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.003448/0.4211, allocations: 1.976 MB / 0.515 GB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.4211, allocations: 8.031 kB / 0.515 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008145/0.4219, allocations: 305 kB / 0.5153 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.4242, allocations: 1.272 MB / 0.5165 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.4244, allocations: 200.8 kB / 0.5167 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.4247, allocations: 111.9 kB / 0.5168 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002442/0.4271, allocations: 1.273 MB / 0.5181 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.4297, allocations: 1.504 MB / 0.5195 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.932e-05/0.4298, allocations: 8 kB / 0.5196 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.4299, allocations: 3.984 kB / 0.5196 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-05/0.43, allocations: 51.94 kB / 0.5196 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.4401, allocations: 7.134 MB / 0.5266 GB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.4415, allocations: 0.5592 MB / 0.5271 GB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006104/0.4421, allocations: 371.8 kB / 0.5275 GB, free: 2.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.778e-05/0.4422, allocations: 16.7 kB / 0.5275 GB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.4422, allocations: 51.25 kB / 0.5275 GB, free: 2.492 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.887e-06/0.4422, allocations: 0 / 0.5275 GB, free: 2.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.01023/0.4525, allocations: 4.422 MB / 0.5319 GB, free: 13.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.4525, allocations: 86.11 kB / 0.5319 GB, free: 13.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001462/0.454, allocations: 1.013 MB / 0.5329 GB, free: 12.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.723e-05/0.4541, allocations: 25.7 kB / 0.533 GB, free: 12.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000437/0.4545, allocations: 0.7861 MB / 0.5337 GB, free: 12.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.4548, allocations: 378.4 kB / 0.5341 GB, free: 11.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-05/0.4549, allocations: 0 / 0.5341 GB, free: 11.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.455, allocations: 365.9 kB / 0.5344 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008473/0.4559, allocations: 0.5195 MB / 0.5349 GB, free: 10.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.457, allocations: 0.9457 MB / 0.5359 GB, free: 9.613 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008892/0.4579, allocations: 0.5489 MB / 0.5364 GB, free: 9.066 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.4579, allocations: 4 kB / 0.5364 GB, free: 9.062 MB / 394.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002498/0.4604, allocations: 1.545 MB / 0.5379 GB, free: 7.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001695/0.4621, allocations: 5.345 MB / 0.5431 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.4621, allocations: 12 kB / 0.5431 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/0.4623, allocations: 48.8 kB / 0.5432 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.4642, allocations: 455.3 kB / 0.5436 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009286/0.4652, allocations: 1.244 MB / 0.5448 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/0.4667, allocations: 155.9 kB / 0.545 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.4669, allocations: 67.94 kB / 0.5451 GB, free: 15.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.4669, allocations: 8 kB / 0.5451 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002172/0.4691, allocations: 1.322 MB / 0.5463 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.4691, allocations: 12 kB / 0.5464 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.626e-05/0.4692, allocations: 45.42 kB / 0.5464 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.471, allocations: 423.4 kB / 0.5468 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008146/0.4718, allocations: 1.252 MB / 0.548 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.4732, allocations: 116 kB / 0.5481 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.4734, allocations: 64 kB / 0.5482 GB, free: 12.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 193 * 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.0002693/0.4736, allocations: 153.9 kB / 0.5483 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/0.4739, allocations: 150.1 kB / 0.5485 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.4758, allocations: 1.07 MB / 0.5495 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.4759, allocations: 15.94 kB / 0.5496 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4759, allocations: 4 kB / 0.5496 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.4759, allocations: 7.969 kB / 0.5496 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00571/0.4816, allocations: 3.251 MB / 0.5527 GB, free: 7.512 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.4816, allocations: 12 kB / 0.5528 GB, free: 7.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.4829, allocations: 299.6 kB / 0.553 GB, free: 7.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.483, allocations: 32.84 kB / 0.5531 GB, free: 7.172 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.071e-05/0.4831, allocations: 20 kB / 0.5531 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008584/0.484, allocations: 1.236 MB / 0.5543 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/0.484, allocations: 19.88 kB / 0.5543 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002567/0.4866, allocations: 2.258 MB / 0.5565 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/0.4871, allocations: 315.2 kB / 0.5568 GB, free: 2.715 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/0.4873, allocations: 27.89 kB / 0.5568 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.4885, allocations: 139.9 kB / 0.557 GB, free: 2.551 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.4887, allocations: 116.3 kB / 0.5571 GB, free: 2.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.01e-05/0.4888, allocations: 40 kB / 0.5571 GB, free: 2.395 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001067/0.4899, allocations: 0.7451 MB / 0.5579 GB, free: 1.648 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00186/0.4918, allocations: 0.5742 MB / 0.5584 GB, free: 1.074 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,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,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0004817/0.4923, allocations: 389.9 kB / 0.5588 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003326/0.4956, allocations: 2.251 MB / 0.561 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4956, allocations: 5.312 kB / 0.561 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008581/0.4965, allocations: 0.5288 MB / 0.5615 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.4978, allocations: 300.3 kB / 0.5618 GB, free: 13.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005632/0.5035, allocations: 2.746 MB / 0.5645 GB, free: 10.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.505, allocations: 1.506 MB / 0.5659 GB, free: 9.133 MB / 426.7 MB Notification: Performance of SimCode: time 5.92e-07/0.505, allocations: 4 kB / 0.566 GB, free: 9.129 MB / 426.7 MB Notification: Performance of Templates: time 0.1406/0.6456, allocations: 26.94 MB / 0.5923 GB, free: 159.3 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches