Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009833, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009789/0.0009789, allocations: 151.7 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.024/1.024, allocations: 173.3 MB / 201.4 MB, free: 9.199 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.57e-05, allocations: 2.312 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01039/0.01041, allocations: 6.968 MB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005161/0.01557, allocations: 2.283 MB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008692/0.01644, allocations: 19.94 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.01793, allocations: 484.8 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001195/0.01913, allocations: 432.6 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.01963, allocations: 207.7 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00163/0.02126, allocations: 1.249 MB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000636/0.0219, allocations: 320.5 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.0232, allocations: 0.7054 MB / 281.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007198/0.02392, allocations: 386.8 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.02412, allocations: 115.9 kB / 281.5 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.02441, allocations: 152 kB / 281.7 MB, free: 8.812 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.02454, allocations: 227.1 kB / 281.9 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003063/0.02484, allocations: 383.1 kB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009276/0.02577, allocations: 0.7666 MB / 283.1 MB, free: 7.445 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.02577, allocations: 0 / 283.1 MB, free: 7.445 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.02577, allocations: 0 / 283.1 MB, free: 7.445 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.02579, allocations: 0 / 283.1 MB, free: 7.445 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001614/0.02741, allocations: 1.309 MB / 284.4 MB, free: 6.098 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.02744, allocations: 8.031 kB / 284.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003508/0.02779, allocations: 212.2 kB / 284.6 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006614/0.02845, allocations: 0.5714 MB / 285.1 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.0285, allocations: 58.38 kB / 285.2 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.02861, allocations: 84.31 kB / 285.3 MB, free: 5.141 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007992/0.02941, allocations: 0.61 MB / 285.9 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.02944, allocations: 12.06 kB / 285.9 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.352e-05/0.0295, allocations: 35.94 kB / 285.9 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.02952, allocations: 24 kB / 286 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003613/0.02988, allocations: 221.7 kB / 286.2 MB, free: 4.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00323/0.03311, allocations: 3.278 MB / 289.5 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.03336, allocations: 139 kB / 289.6 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.225e-05/0.03343, allocations: 55.64 kB / 289.7 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.03346, allocations: 4 kB / 289.7 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.03348, allocations: 41.39 kB / 289.7 MB, free: 464 kB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.03348, allocations: 4 kB / 289.7 MB, free: 460 kB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.1149/0.1483, allocations: 0.5599 MB / 290.3 MB, free: 28.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.1484, allocations: 84.23 kB / 290.3 MB, free: 28.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005602/0.1489, allocations: 0.6653 MB / 291 MB, free: 27.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.149, allocations: 30.11 kB / 291 MB, free: 27.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.1492, allocations: 0.5774 MB / 291.6 MB, free: 27.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.1492, allocations: 107.4 kB / 291.7 MB, free: 27.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.938e-05/0.1493, allocations: 122.9 kB / 291.8 MB, free: 27.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1494, allocations: 0.5651 MB / 292.4 MB, free: 27.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.919e-05/0.1495, allocations: 50.36 kB / 292.5 MB, free: 27.08 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.1497, allocations: 493.1 kB / 292.9 MB, free: 26.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.15, allocations: 0.5659 MB / 293.5 MB, free: 25.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.15, allocations: 3.375 kB / 293.5 MB, free: 25.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0005341/0.1505, allocations: 491.6 kB / 294 MB, free: 25.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1505, allocations: 10.06 kB / 294 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1506, allocations: 10.5 kB / 294 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000108/0.1507, allocations: 39.03 kB / 294 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.1509, allocations: 134.4 kB / 294.2 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005372/0.1515, allocations: 1.73 MB / 295.9 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1517, allocations: 26.67 kB / 295.9 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1517, allocations: 25.03 kB / 296 MB, free: 24.2 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0001433/0.1519, allocations: 203.8 kB / 296.2 MB, free: 24.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.765e-05/0.1519, allocations: 79.81 kB / 296.2 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002546/0.1522, allocations: 221.2 kB / 296.4 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1522, allocations: 6.016 kB / 296.5 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1522, allocations: 1.031 kB / 296.5 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1522, allocations: 1.688 kB / 296.5 MB, free: 23.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007579/0.153, allocations: 0.7895 MB / 297.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.153, allocations: 1.281 kB / 297.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.1531, allocations: 53.36 kB / 297.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.357e-05/0.1532, allocations: 21.84 kB / 297.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1532, allocations: 7.734 kB / 297.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004069/0.1536, allocations: 1.709 MB / 299 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1536, allocations: 9.906 kB / 299 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.1539, allocations: 480.7 kB / 299.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.154, allocations: 90.17 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.1541, allocations: 9.109 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.1542, allocations: 17.81 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.1543, allocations: 24.3 kB / 299.7 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1543, allocations: 10.03 kB / 299.7 MB, free: 21.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003065/0.1546, allocations: 402.6 kB / 300.1 MB, free: 21.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1546, allocations: 0 / 300.1 MB, free: 21.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004841/0.1551, allocations: 158.9 kB / 300.2 MB, free: 21.33 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.000152/0.1552, allocations: 125.8 kB / 300.3 MB, free: 21.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1556, allocations: 409.3 kB / 300.7 MB, free: 21.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1556, allocations: 1.531 kB / 300.7 MB, free: 21.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1558, allocations: 251.6 kB / 301 MB, free: 20.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005293/0.1563, allocations: 177.6 kB / 301.2 MB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.1581, allocations: 1.339 MB / 302.5 MB, free: 20.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.1582, allocations: 143.3 kB / 302.6 MB, free: 19.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002495/0.1585, allocations: 82.88 kB / 302.7 MB, free: 19.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.1588, allocations: 228.8 kB / 302.9 MB, free: 19.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1588, allocations: 0 / 302.9 MB, free: 19.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01305/0.1718, allocations: 8.674 MB / 311.6 MB, free: 16.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.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.876175053883344]