Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 80.8 kB / 22.29 MB, free: 2.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 164.9 kB / 25.69 MB, free: 8.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9516/0.9516, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.063e-06/2.063e-06, allocations: 0 / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.79e-05, allocations: 2.312 kB / 251.6 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00782/0.007848, allocations: 7.923 MB / 259.5 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.01125, allocations: 2.773 MB / 262.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003848/0.01164, allocations: 35.81 kB / 262.3 MB, free: 12.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008506/0.01249, allocations: 0.5238 MB / 262.8 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005383/0.01303, allocations: 496 kB / 263.3 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.01341, allocations: 367.4 kB / 263.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009421/0.01435, allocations: 1.561 MB / 265.2 MB, free: 9.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004319/0.01478, allocations: 400 kB / 265.6 MB, free: 9.055 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006147/0.0154, allocations: 0.8651 MB / 266.5 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004056/0.0158, allocations: 478.5 kB / 267 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.01591, allocations: 136 kB / 267.1 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.01612, allocations: 175.9 kB / 267.3 MB, free: 7.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.01625, allocations: 294.9 kB / 267.6 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002641/0.01651, allocations: 454.8 kB / 268 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007662/0.01728, allocations: 0.9611 MB / 269 MB, free: 5.715 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.01728, allocations: 0 / 269 MB, free: 5.715 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01729, allocations: 0 / 269 MB, free: 5.715 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.01729, allocations: 0 / 269 MB, free: 5.715 MB / 250.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.00127/0.01856, allocations: 1.421 MB / 270.4 MB, free: 4.266 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.0186, allocations: 11.98 kB / 270.4 MB, free: 4.254 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003758/0.01897, allocations: 232.7 kB / 270.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006559/0.01963, allocations: 0.5771 MB / 271.2 MB, free: 3.418 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.01967, allocations: 74.38 kB / 271.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.303e-05/0.01975, allocations: 104.3 kB / 271.4 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.02039, allocations: 0.7746 MB / 272.2 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.02041, allocations: 3.953 kB / 272.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.326e-05/0.02046, allocations: 43.98 kB / 272.2 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.02047, allocations: 24 kB / 272.2 MB, free: 2.34 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.02077, allocations: 245.8 kB / 272.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.02329, allocations: 3.12 MB / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.02363, allocations: 226.8 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.384e-05/0.0237, allocations: 72.95 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.02372, allocations: 8 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.02375, allocations: 42.31 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.482e-06/0.02375, allocations: 0 / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008788/0.02463, allocations: 0.6589 MB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.02467, allocations: 110.8 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005038/0.02517, allocations: 0.7275 MB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.02519, allocations: 41.7 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.0254, allocations: 0.5127 MB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.76e-05/0.02549, allocations: 150.7 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.0256, allocations: 138.5 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.801e-05/0.02568, allocations: 337.9 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.532e-05/0.02575, allocations: 72.75 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.02598, allocations: 441.3 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.02631, allocations: 0.5072 MB / 279.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.02632, allocations: 0 / 279.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004399/0.02676, allocations: 481.6 kB / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.02677, allocations: 8 kB / 280.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.02678, allocations: 12 kB / 280.1 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.613e-05/0.02688, allocations: 36.77 kB / 280.1 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.02723, allocations: 192 kB / 280.3 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000575/0.0278, allocations: 1.166 MB / 281.5 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.02803, allocations: 39.94 kB / 281.5 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.02806, allocations: 28 kB / 281.5 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001546/0.02821, allocations: 154.1 kB / 281.7 MB, free: 8.148 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002362/0.02845, allocations: 453.3 kB / 282.1 MB, free: 7.543 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003403/0.02879, allocations: 0.4995 MB / 282.6 MB, free: 6.898 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.277e-06/0.02879, allocations: 4 kB / 282.6 MB, free: 6.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004121/0.0292, allocations: 473.5 kB / 283.1 MB, free: 6.422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.686e-06/0.02921, allocations: 8 kB / 283.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.02922, allocations: 12.84 kB / 283.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.687e-05/0.02928, allocations: 36.84 kB / 283.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.02959, allocations: 183.7 kB / 283.3 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004693/0.03006, allocations: 1.178 MB / 284.5 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.03028, allocations: 32.12 kB / 284.5 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.0303, allocations: 31.98 kB / 284.6 MB, free: 4.852 MB / 266.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001204/0.03042, allocations: 235.9 kB / 284.8 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.787e-05/0.03049, allocations: 63.94 kB / 284.9 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.03075, allocations: 250.5 kB / 285.1 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.03075, allocations: 4 kB / 285.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.03075, allocations: 0 / 285.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.03076, allocations: 0 / 285.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.03149, allocations: 0.7268 MB / 285.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.03149, allocations: 4 kB / 285.8 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.03168, allocations: 71.91 kB / 285.9 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.971e-05/0.03173, allocations: 20.84 kB / 285.9 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.03175, allocations: 12.22 kB / 286 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000456/0.0322, allocations: 1.166 MB / 287.1 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.0322, allocations: 3.938 kB / 287.1 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.03254, allocations: 428.7 kB / 287.5 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.03266, allocations: 83.55 kB / 287.6 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.03271, allocations: 12 kB / 287.6 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.03287, allocations: 19.98 kB / 287.7 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/0.03291, allocations: 27.95 kB / 287.7 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.03292, allocations: 8 kB / 287.7 MB, free: 1.547 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002615/0.03319, allocations: 351.3 kB / 288 MB, free: 1.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03319, allocations: 0 / 288 MB, free: 1.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005879/0.03377, allocations: 347.9 kB / 288.4 MB, free: 0.8633 MB / 266.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001528/0.03393, allocations: 112.2 kB / 288.5 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.03455, allocations: 0.7194 MB / 289.2 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/0.03457, allocations: 12.62 kB / 289.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.03473, allocations: 223.1 kB / 289.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/0.03529, allocations: 228.3 kB / 289.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.03723, allocations: 1.662 MB / 291.3 MB, free: 13.81 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.03736, allocations: 175.5 kB / 291.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.03761, allocations: 122.9 kB / 291.6 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.03793, allocations: 241.2 kB / 291.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.03793, allocations: 0 / 291.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of Templates: time 0.01417/0.05211, allocations: 11.64 MB / 303.5 MB, free: 1.66 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.01489761704579]