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.0009162/0.0009162, allocations: 80.8 kB / 22.28 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.001158/0.001158, allocations: 167.2 kB / 25.7 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.8785/0.8785, 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 1.453e-06/1.453e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.294e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00745/0.007473, allocations: 7.876 MB / 259.4 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004093/0.01157, allocations: 2.773 MB / 262.2 MB, free: 12.53 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000455/0.01202, allocations: 31.81 kB / 262.2 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009955/0.01302, allocations: 0.5238 MB / 262.8 MB, free: 11.97 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000672/0.01369, allocations: 496.1 kB / 263.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004844/0.01417, allocations: 355.4 kB / 263.6 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.01534, allocations: 1.569 MB / 265.2 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.01581, allocations: 404 kB / 265.5 MB, free: 9.133 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000986/0.01679, allocations: 0.8651 MB / 266.4 MB, free: 8.266 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004901/0.01728, allocations: 474.5 kB / 266.9 MB, free: 7.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.01742, allocations: 136 kB / 267 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.01764, allocations: 171.9 kB / 267.2 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.01778, allocations: 298.8 kB / 267.5 MB, free: 7.207 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.01808, allocations: 454.8 kB / 267.9 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000828/0.01891, allocations: 0.9494 MB / 268.9 MB, free: 5.809 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.01891, allocations: 4 kB / 268.9 MB, free: 5.805 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01891, allocations: 0 / 268.9 MB, free: 5.805 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.01893, allocations: 4 kB / 268.9 MB, free: 5.801 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.00145/0.02038, allocations: 1.425 MB / 270.3 MB, free: 4.348 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.02041, allocations: 15.98 kB / 270.3 MB, free: 4.332 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003654/0.02077, allocations: 228.7 kB / 270.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006779/0.02145, allocations: 0.5848 MB / 271.1 MB, free: 3.492 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.02149, allocations: 70.38 kB / 271.2 MB, free: 3.422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.046e-05/0.02158, allocations: 104.3 kB / 271.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.02221, allocations: 0.763 MB / 272.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.02224, allocations: 7.953 kB / 272.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.333e-05/0.02228, allocations: 40 kB / 272.1 MB, free: 2.453 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.02229, allocations: 24 kB / 272.1 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.02266, allocations: 253.7 kB / 272.4 MB, free: 2.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002732/0.0254, allocations: 3.116 MB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.02573, allocations: 226.8 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.438e-05/0.0258, allocations: 73.44 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.02582, allocations: 4 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.02585, allocations: 38.31 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.793e-06/0.02585, allocations: 0 / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009038/0.02675, allocations: 0.6745 MB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.02679, allocations: 106.8 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005066/0.0273, allocations: 0.7276 MB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.02732, allocations: 29.7 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/0.02755, allocations: 0.5166 MB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.02762, allocations: 154.7 kB / 278 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.02774, allocations: 142.5 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.02784, allocations: 333.9 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.493e-05/0.02791, allocations: 68.83 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.02817, allocations: 445.2 kB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.02854, allocations: 0.5109 MB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.02855, allocations: 8 kB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004425/0.02899, allocations: 466.2 kB / 280 MB, free: 9.953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.02901, allocations: 16 kB / 280 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.02902, allocations: 8 kB / 280 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001108/0.02913, allocations: 36.78 kB / 280 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.02943, allocations: 167.7 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006704/0.0301, allocations: 1.174 MB / 281.4 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.03034, allocations: 35.94 kB / 281.4 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.03036, allocations: 32 kB / 281.4 MB, free: 8.398 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001644/0.03053, allocations: 150.1 kB / 281.6 MB, free: 8.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002188/0.03074, allocations: 449.2 kB / 282 MB, free: 7.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003331/0.03108, allocations: 0.4995 MB / 282.5 MB, free: 7.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/0.03108, allocations: 7.984 kB / 282.5 MB, free: 6.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004203/0.0315, allocations: 474 kB / 283 MB, free: 6.523 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.03151, allocations: 15.98 kB / 283 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.03152, allocations: 8 kB / 283 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.021e-05/0.03158, allocations: 28.86 kB / 283 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.03184, allocations: 163.7 kB / 283.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005406/0.03238, allocations: 1.174 MB / 284.4 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.0326, allocations: 31.98 kB / 284.4 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.03262, allocations: 28 kB / 284.4 MB, free: 4.984 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.0001058/0.03273, allocations: 239.8 kB / 284.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.52e-05/0.03279, allocations: 67.95 kB / 284.7 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.03304, allocations: 250.5 kB / 285 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.03305, allocations: 4 kB / 285 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.03305, allocations: 7.875 kB / 285 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.03306, allocations: 3.984 kB / 285 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.03381, allocations: 0.7151 MB / 285.7 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.03382, allocations: 4 kB / 285.7 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.03403, allocations: 80.12 kB / 285.8 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.048e-05/0.03409, allocations: 20.84 kB / 285.8 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.03411, allocations: 8 kB / 285.8 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004764/0.03458, allocations: 1.154 MB / 287 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.03459, allocations: 8.062 kB / 287 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.03492, allocations: 432.7 kB / 287.4 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.03507, allocations: 79.42 kB / 287.5 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.03512, allocations: 8 kB / 287.5 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.03528, allocations: 27.92 kB / 287.5 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.03532, allocations: 23.95 kB / 287.5 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.03533, allocations: 8 kB / 287.5 MB, free: 1.676 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002575/0.03559, allocations: 355.3 kB / 287.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03559, allocations: 4 kB / 287.9 MB, free: 1.324 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005918/0.03618, allocations: 344 kB / 288.2 MB, free: 0.9883 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.00015/0.03633, allocations: 100.3 kB / 288.3 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005838/0.03692, allocations: 0.7201 MB / 289 MB, free: 140 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/0.03693, allocations: 8.5 kB / 289.1 MB, free: 132 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.03716, allocations: 227.8 kB / 289.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000528/0.03769, allocations: 233.9 kB / 289.5 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.03953, allocations: 1.654 MB / 291.2 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.03965, allocations: 175.5 kB / 291.3 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.03991, allocations: 122.8 kB / 291.5 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003146/0.04022, allocations: 245.2 kB / 291.7 MB, free: 13.4 MB / 282.7 MB Notification: Performance of SimCode: time 7.02e-07/0.04023, allocations: 0 / 291.7 MB, free: 13.4 MB / 282.7 MB Notification: Performance of Templates: time 0.01409/0.05432, allocations: 11.49 MB / 303.2 MB, free: 1.949 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 -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: 2.800198861863464]