Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009138/0.0009138, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0008856/0.0008856, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8687/0.8687, allocations: 177.1 MB / 206.1 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.828e-06/1.09e-05, allocations: 2.312 kB / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00789/0.007901, allocations: 7.897 MB / 282.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003662/0.01156, allocations: 2.668 MB / 284.8 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004985/0.01206, allocations: 35.81 kB / 284.8 MB, free: 9.762 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.01313, allocations: 0.5121 MB / 285.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007176/0.01385, allocations: 488.1 kB / 285.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.01439, allocations: 367.4 kB / 286.2 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.01564, allocations: 1.557 MB / 287.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.01619, allocations: 396 kB / 288.1 MB, free: 6.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008898/0.01708, allocations: 0.8728 MB / 289 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005335/0.01761, allocations: 462.5 kB / 289.4 MB, free: 5.102 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.01776, allocations: 136 kB / 289.6 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.01801, allocations: 176 kB / 289.7 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.01819, allocations: 286.9 kB / 290 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006021/0.01879, allocations: 458.8 kB / 290.5 MB, free: 4.066 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009386/0.01973, allocations: 0.9533 MB / 291.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.01973, allocations: 0 / 291.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.01973, allocations: 0 / 291.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.01974, allocations: 4 kB / 291.4 MB, free: 3.105 MB / 266.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.001756/0.0215, allocations: 1.573 MB / 293 MB, free: 1.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.02153, allocations: 12.03 kB / 293 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004977/0.02203, allocations: 272 kB / 293.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.02286, allocations: 0.7122 MB / 294 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.414e-05/0.02291, allocations: 70.38 kB / 294 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.02302, allocations: 108.3 kB / 294.1 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008842/0.02391, allocations: 0.8105 MB / 295 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.02394, allocations: 7.953 kB / 295 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.167e-05/0.024, allocations: 40 kB / 295 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.02402, allocations: 24 kB / 295 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004374/0.02446, allocations: 281.6 kB / 295.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.02834, allocations: 3.982 MB / 299.3 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.02879, allocations: 251.7 kB / 299.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.02889, allocations: 79.62 kB / 299.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.02891, allocations: 8.625 kB / 299.6 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.02894, allocations: 37.39 kB / 299.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.02894, allocations: 0 / 299.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.001106/0.03004, allocations: 0.7363 MB / 300.4 MB, free: 9.688 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.0301, allocations: 140.5 kB / 300.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007065/0.0308, allocations: 0.7954 MB / 301.3 MB, free: 8.711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.03083, allocations: 37.7 kB / 301.4 MB, free: 8.668 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.03121, allocations: 0.6697 MB / 302 MB, free: 7.988 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.576e-05/0.03131, allocations: 158.7 kB / 302.2 MB, free: 7.832 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.03146, allocations: 140.2 kB / 302.3 MB, free: 7.684 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.0316, allocations: 0.5081 MB / 302.8 MB, free: 7.168 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.03171, allocations: 79.62 kB / 302.9 MB, free: 7.086 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003597/0.03207, allocations: 0.6027 MB / 303.5 MB, free: 6.258 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007398/0.03281, allocations: 0.6407 MB / 304.1 MB, free: 5.418 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.03281, allocations: 4 kB / 304.2 MB, free: 5.414 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007146/0.03353, allocations: 0.5779 MB / 304.7 MB, free: 4.824 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.03354, allocations: 8 kB / 304.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.03356, allocations: 16 kB / 304.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.957e-05/0.03366, allocations: 35.61 kB / 304.8 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004063/0.03406, allocations: 180.2 kB / 305 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007795/0.03484, allocations: 1.721 MB / 306.7 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.03519, allocations: 31.95 kB / 306.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.03523, allocations: 31.98 kB / 306.7 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002288/0.03545, allocations: 204.9 kB / 306.9 MB, free: 2.484 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003564/0.03581, allocations: 0.6067 MB / 307.6 MB, free: 1.648 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004928/0.0363, allocations: 0.6253 MB / 308.2 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.779e-06/0.03631, allocations: 4 kB / 308.2 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006786/0.03699, allocations: 0.578 MB / 308.8 MB, free: 236 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.037, allocations: 8.938 kB / 308.8 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.03701, allocations: 12 kB / 308.8 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.767e-05/0.03707, allocations: 35.69 kB / 308.8 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.03744, allocations: 163.7 kB / 309 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006933/0.03814, allocations: 1.725 MB / 310.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003417/0.03848, allocations: 44 kB / 310.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.03851, allocations: 28 kB / 310.8 MB, free: 14.11 MB / 298.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.0003682/0.03888, allocations: 319.8 kB / 311.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.03899, allocations: 99.44 kB / 311.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.0394, allocations: 293.5 kB / 311.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.0394, allocations: 4 kB / 311.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.03941, allocations: 4 kB / 311.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.03941, allocations: 3.984 kB / 311.5 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.04051, allocations: 0.9512 MB / 312.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.04052, allocations: 4 kB / 312.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.04076, allocations: 75.89 kB / 312.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.747e-05/0.04081, allocations: 19.69 kB / 312.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.04083, allocations: 11.98 kB / 312.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00069/0.04152, allocations: 1.709 MB / 314.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.04153, allocations: 4 kB / 314.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005245/0.04205, allocations: 0.5615 MB / 314.8 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.04224, allocations: 135.2 kB / 314.9 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.01e-05/0.04231, allocations: 16.12 kB / 315 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.04256, allocations: 19.98 kB / 315 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.04261, allocations: 27.95 kB / 315 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.04262, allocations: 8 kB / 315 MB, free: 9.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003859/0.04301, allocations: 466.8 kB / 315.5 MB, free: 9.148 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04301, allocations: 3.938 kB / 315.5 MB, free: 9.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009153/0.04392, allocations: 347.9 kB / 315.8 MB, free: 8.805 MB / 298.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.0001444/0.04407, allocations: 127.2 kB / 315.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008233/0.04489, allocations: 0.8549 MB / 316.8 MB, free: 7.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.04489, allocations: 4 kB / 316.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.0451, allocations: 273.3 kB / 317.1 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007856/0.04589, allocations: 245.1 kB / 317.3 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.0482, allocations: 1.697 MB / 319 MB, free: 5.488 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.0483, allocations: 175.6 kB / 319.2 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002472/0.04855, allocations: 114.9 kB / 319.3 MB, free: 5.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.04887, allocations: 286 kB / 319.6 MB, free: 4.898 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.04887, allocations: 4 kB / 319.6 MB, free: 4.895 MB / 298.7 MB Notification: Performance of Templates: time 0.01366/0.06253, allocations: 11.72 MB / 331.3 MB, free: 9.398 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.9646139978431165]