Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [: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.001398/0.001398, allocations: 205.1 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 94.86 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.277e-06/9.448e-06, allocations: 0 / 343.2 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.09916, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2351/0.3343, allocations: 99.35 MB / 494 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.3346, allocations: 85.27 kB / 494.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.07493/0.4095, allocations: 27.05 MB / 0.5089 GB, free: 4.371 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.742e-05/0.4096, allocations: 31.92 kB / 0.5089 GB, free: 4.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002363/0.412, allocations: 1.167 MB / 0.5101 GB, free: 3.129 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4121, allocations: 8.031 kB / 0.5101 GB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.4129, allocations: 198.2 kB / 0.5103 GB, free: 2.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.4149, allocations: 0.8399 MB / 0.5111 GB, free: 2.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.415, allocations: 36 kB / 0.5111 GB, free: 2.008 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.4151, allocations: 63.91 kB / 0.5112 GB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001222/0.4164, allocations: 0.5272 MB / 0.5117 GB, free: 1.418 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.4179, allocations: 0.7663 MB / 0.5124 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.418, allocations: 4 kB / 0.5124 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.228e-05/0.418, allocations: 3.906 kB / 0.5124 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.4181, allocations: 24 kB / 0.5125 GB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006536/0.4246, allocations: 3.973 MB / 0.5164 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006695/0.4253, allocations: 235.9 kB / 0.5166 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.4256, allocations: 143.8 kB / 0.5167 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.4256, allocations: 4 kB / 0.5167 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.4257, allocations: 34.56 kB / 0.5168 GB, free: 11.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.505e-06/0.4257, allocations: 0 / 0.5168 GB, free: 11.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001877/0.4276, allocations: 0.9839 MB / 0.5177 GB, free: 10.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.4276, allocations: 85.11 kB / 0.5178 GB, free: 10.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009721/0.4286, allocations: 0.6295 MB / 0.5184 GB, free: 10.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.4286, allocations: 25.7 kB / 0.5184 GB, free: 10.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.4289, allocations: 490 kB / 0.5189 GB, free: 9.676 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4291, allocations: 145.9 kB / 0.519 GB, free: 9.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.4291, allocations: 0 / 0.519 GB, free: 9.531 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4292, allocations: 330 kB / 0.5194 GB, free: 9.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.4295, allocations: 129.6 kB / 0.5195 GB, free: 9.078 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004134/0.4299, allocations: 452.9 kB / 0.5199 GB, free: 8.488 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.4303, allocations: 215.8 kB / 0.5201 GB, free: 8.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4303, allocations: 0 / 0.5201 GB, free: 8.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001057/0.4313, allocations: 0.6143 MB / 0.5207 GB, free: 7.652 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00164/0.433, allocations: 4.083 MB / 0.5247 GB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.433, allocations: 15.91 kB / 0.5247 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.4332, allocations: 28.86 kB / 0.5247 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006484/0.4339, allocations: 175.7 kB / 0.5249 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.4349, allocations: 1.236 MB / 0.5261 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000646/0.4356, allocations: 28.05 kB / 0.5261 GB, free: 1.656 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.745e-05/0.4357, allocations: 36 kB / 0.5262 GB, free: 1.621 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/0.4357, allocations: 4 kB / 0.5262 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009487/0.4366, allocations: 496.8 kB / 0.5267 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.4367, allocations: 8 kB / 0.5267 GB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001059/0.4368, allocations: 40.75 kB / 0.5267 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/0.4374, allocations: 167.7 kB / 0.5269 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009413/0.4383, allocations: 1.24 MB / 0.5281 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005792/0.4389, allocations: 20.06 kB / 0.5281 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.303e-05/0.439, allocations: 36 kB / 0.5281 GB, free: 15.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001601/0.4392, allocations: 124.7 kB / 0.5282 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.4393, allocations: 86.88 kB / 0.5283 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007814/0.4401, allocations: 365.9 kB / 0.5287 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4402, allocations: 8 kB / 0.5287 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4402, allocations: 3.938 kB / 0.5287 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4402, allocations: 3.984 kB / 0.5287 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.4423, allocations: 1.145 MB / 0.5298 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4424, allocations: 7.891 kB / 0.5298 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.4428, allocations: 83.89 kB / 0.5299 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.4429, allocations: 24.84 kB / 0.5299 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.4429, allocations: 8.219 kB / 0.5299 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009147/0.4439, allocations: 1.217 MB / 0.5311 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4439, allocations: 3.938 kB / 0.5311 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009357/0.4448, allocations: 0.7022 MB / 0.5318 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.4452, allocations: 196 kB / 0.532 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.4453, allocations: 4 kB / 0.532 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004175/0.4457, allocations: 15.89 kB / 0.532 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.4458, allocations: 27.91 kB / 0.532 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.4458, allocations: 12 kB / 0.5321 GB, free: 11.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0007016/0.4465, allocations: 483.1 kB / 0.5325 GB, free: 10.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001307/0.4479, allocations: 316 kB / 0.5328 GB, free: 10.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0004362/0.4483, allocations: 265.1 kB / 0.5331 GB, free: 10.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.4499, allocations: 0.8715 MB / 0.5339 GB, free: 9.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4499, allocations: 0 / 0.5339 GB, free: 9.234 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003657/0.4503, allocations: 254.5 kB / 0.5342 GB, free: 8.977 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4514, allocations: 204.7 kB / 0.5344 GB, free: 8.789 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.4546, allocations: 1.332 MB / 0.5357 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009548/0.4556, allocations: 1.107 MB / 0.5367 GB, free: 6.262 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4556, allocations: 0 / 0.5367 GB, free: 6.262 MB / 410.7 MB Notification: Performance of Templates: time 0.0253/0.4809, allocations: 12.2 MB / 0.5487 GB, free: 10.18 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches