Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") [: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 trunk/package.mo): time 0.001049/0.001049, allocations: 196.3 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.159/1.159, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008548/0.0008549, allocations: 92.2 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.286e-06/8.316e-06, allocations: 4 kB / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08592, allocations: 51.48 MB / 394.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2552/0.3411, allocations: 117.9 MB / 0.5005 GB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.3415, allocations: 82.25 kB / 0.5005 GB, free: 7.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1029/0.4444, allocations: 41.75 MB / 0.5413 GB, free: 3.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.598e-05/0.4445, allocations: 48.12 kB / 0.5414 GB, free: 3.023 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.00266/0.4472, allocations: 1.716 MB / 0.543 GB, free: 1.258 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.4472, allocations: 8.031 kB / 0.543 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000734/0.448, allocations: 277.3 kB / 0.5433 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.4499, allocations: 1.15 MB / 0.5444 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.2e-05/0.45, allocations: 55.94 kB / 0.5445 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.4502, allocations: 107.9 kB / 0.5446 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001651/0.4518, allocations: 0.8734 MB / 0.5454 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.4539, allocations: 1.247 MB / 0.5466 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.218e-05/0.4539, allocations: 3.938 kB / 0.5467 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.394e-05/0.454, allocations: 4 kB / 0.5467 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.4541, allocations: 44 kB / 0.5467 GB, free: 13.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007784/0.4619, allocations: 6.349 MB / 0.5529 GB, free: 6.727 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.463, allocations: 463.1 kB / 0.5533 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.4634, allocations: 250.3 kB / 0.5536 GB, free: 6.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.4635, allocations: 13.2 kB / 0.5536 GB, free: 6.004 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.4635, allocations: 43.05 kB / 0.5536 GB, free: 5.953 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 2.265e-06/0.4635, allocations: 0 / 0.5536 GB, free: 5.953 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.002184/0.4657, allocations: 1.426 MB / 0.555 GB, free: 4.469 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.4658, allocations: 85.77 kB / 0.5551 GB, free: 4.367 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.467, allocations: 0.8893 MB / 0.556 GB, free: 3.469 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.467, allocations: 25.7 kB / 0.556 GB, free: 3.438 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.4674, allocations: 0.7113 MB / 0.5567 GB, free: 2.715 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.4676, allocations: 228.6 kB / 0.5569 GB, free: 2.488 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.4676, allocations: 4 kB / 0.5569 GB, free: 2.484 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4677, allocations: 353.8 kB / 0.5573 GB, free: 2.133 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.4681, allocations: 218.6 kB / 0.5575 GB, free: 1.922 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000611/0.4687, allocations: 0.62 MB / 0.5581 GB, free: 1.113 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004872/0.4692, allocations: 327 kB / 0.5584 GB, free: 0.8008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4692, allocations: 4 kB / 0.5584 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001413/0.4707, allocations: 0.9142 MB / 0.5593 GB, free: 15.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00176/0.4724, allocations: 5.313 MB / 0.5645 GB, free: 10.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.4725, allocations: 16 kB / 0.5645 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.4726, allocations: 44.78 kB / 0.5645 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009952/0.4736, allocations: 279.6 kB / 0.5648 GB, free: 9.816 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.4747, allocations: 1.249 MB / 0.566 GB, free: 8.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000856/0.4755, allocations: 60.02 kB / 0.5661 GB, free: 8.391 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.092e-05/0.4756, allocations: 52 kB / 0.5661 GB, free: 8.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.4756, allocations: 5.719 kB / 0.5661 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00119/0.4768, allocations: 0.7333 MB / 0.5668 GB, free: 7.602 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4768, allocations: 12.94 kB / 0.5669 GB, free: 7.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-05/0.477, allocations: 44.86 kB / 0.5669 GB, free: 7.543 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008424/0.4778, allocations: 259.6 kB / 0.5671 GB, free: 7.289 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007696/0.4786, allocations: 1.24 MB / 0.5684 GB, free: 5.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.4793, allocations: 32.05 kB / 0.5684 GB, free: 5.898 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.551e-05/0.4794, allocations: 55.94 kB / 0.5684 GB, free: 5.844 MB / 442.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: 3 (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 (140): * Single equations (assignments): 139 * 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.0001655/0.4795, allocations: 144.5 kB / 0.5686 GB, free: 5.695 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.4797, allocations: 126.4 kB / 0.5687 GB, free: 5.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.4807, allocations: 0.5407 MB / 0.5692 GB, free: 5.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4807, allocations: 8 kB / 0.5692 GB, free: 5.012 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.4807, allocations: 4 kB / 0.5692 GB, free: 5.008 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.4808, allocations: 3.984 kB / 0.5692 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.4837, allocations: 1.74 MB / 0.5709 GB, free: 3.199 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.4838, allocations: 0 / 0.5709 GB, free: 3.199 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000715/0.4845, allocations: 152 kB / 0.5711 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.4846, allocations: 24.86 kB / 0.5711 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.4847, allocations: 7.984 kB / 0.5711 GB, free: 3.016 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008387/0.4855, allocations: 1.223 MB / 0.5723 GB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.4855, allocations: 7.938 kB / 0.5723 GB, free: 1.672 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001246/0.4868, allocations: 1.003 MB / 0.5733 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003593/0.4871, allocations: 255.5 kB / 0.5735 GB, free: 336 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.4873, allocations: 4 kB / 0.5735 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006113/0.4879, allocations: 51.95 kB / 0.5736 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.488, allocations: 48.3 kB / 0.5736 GB, free: 232 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.4881, allocations: 19.98 kB / 0.5737 GB, free: 212 kB / 442.7 MB Notification: Performance of sort global known variables: time 0.1638/0.6518, allocations: 0.6481 MB / 0.5743 GB, free: 78.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00168/0.6535, allocations: 462 kB / 0.5747 GB, free: 78.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (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,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.0004142/0.654, allocations: 369.9 kB / 0.5751 GB, free: 78.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.6555, allocations: 1.253 MB / 0.5763 GB, free: 78.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6555, allocations: 0 / 0.5763 GB, free: 78.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.656, allocations: 347.6 kB / 0.5766 GB, free: 78.31 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.6571, allocations: 261.9 kB / 0.5769 GB, free: 78.31 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.6606, allocations: 2.067 MB / 0.5789 GB, free: 77.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007971/0.6614, allocations: 1.357 MB / 0.5802 GB, free: 76.95 MB / 442.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6614, allocations: 0 / 0.5802 GB, free: 76.95 MB / 442.7 MB Notification: Performance of Templates: time 0.02676/0.6881, allocations: 17.7 MB / 0.5975 GB, free: 75.98 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches