Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.0009306/0.0009306, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008901/0.0008901, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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 0.9744/0.9744, allocations: 173.3 MB / 201.1 MB, free: 9.328 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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.621e-05/2.82e-05, allocations: 6.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007207/0.007235, allocations: 8.055 MB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004071/0.01131, allocations: 2.583 MB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008322/0.01214, allocations: 27.88 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.01353, allocations: 0.5285 MB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001038/0.01457, allocations: 0.5116 MB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.01502, allocations: 247.6 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.01646, allocations: 1.532 MB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005697/0.01703, allocations: 375.2 kB / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.01814, allocations: 0.8612 MB / 282.7 MB, free: 7.617 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005835/0.01873, allocations: 486.5 kB / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.01888, allocations: 140 kB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.01915, allocations: 176 kB / 283.5 MB, free: 6.832 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.01929, allocations: 286.9 kB / 283.8 MB, free: 6.551 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003887/0.01968, allocations: 470.9 kB / 284.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009698/0.02065, allocations: 0.9262 MB / 285.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.02065, allocations: 0 / 285.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.02065, allocations: 0 / 285.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.02067, allocations: 0 / 285.2 MB, free: 5.16 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001729/0.0224, allocations: 1.511 MB / 286.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.02244, allocations: 20.02 kB / 286.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.02289, allocations: 268 kB / 287 MB, free: 3.328 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008216/0.02371, allocations: 0.6802 MB / 287.6 MB, free: 2.617 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.02375, allocations: 74 kB / 287.7 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.02385, allocations: 99.95 kB / 287.8 MB, free: 2.449 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009095/0.02476, allocations: 0.8278 MB / 288.6 MB, free: 1.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.02479, allocations: 4 kB / 288.6 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.02484, allocations: 43.94 kB / 288.7 MB, free: 1.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.02486, allocations: 24 kB / 288.7 MB, free: 1.488 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005536/0.02542, allocations: 355.7 kB / 289 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1234/0.1488, allocations: 3.614 MB / 292.7 MB, free: 26.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.1492, allocations: 278.7 kB / 292.9 MB, free: 26.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.1496, allocations: 197.2 kB / 293.1 MB, free: 26.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.1496, allocations: 8.484 kB / 293.1 MB, free: 26.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1497, allocations: 41.39 kB / 293.2 MB, free: 26.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.555e-06/0.1497, allocations: 0 / 293.2 MB, free: 26.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001719/0.1514, allocations: 1.004 MB / 294.2 MB, free: 26.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.1514, allocations: 86.02 kB / 294.3 MB, free: 26.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007952/0.1522, allocations: 0.749 MB / 295 MB, free: 25.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.1522, allocations: 31.36 kB / 295 MB, free: 25.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000292/0.1525, allocations: 0.6444 MB / 295.7 MB, free: 25.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.426e-05/0.1526, allocations: 166.8 kB / 295.8 MB, free: 25.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.1527, allocations: 134.2 kB / 296 MB, free: 25.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1529, allocations: 0.5713 MB / 296.6 MB, free: 24.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.153, allocations: 87.34 kB / 296.6 MB, free: 24.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1533, allocations: 0.5213 MB / 297.2 MB, free: 24.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.1538, allocations: 0.6315 MB / 297.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1538, allocations: 2.5 kB / 297.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0008051/0.1546, allocations: 0.647 MB / 298.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1546, allocations: 9.875 kB / 298.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.1546, allocations: 9.594 kB / 298.5 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.1548, allocations: 76.14 kB / 298.5 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.1551, allocations: 149.6 kB / 298.7 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.1566, allocations: 3.863 MB / 302.5 MB, free: 20.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.1569, allocations: 32.06 kB / 302.6 MB, free: 20.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.1569, allocations: 36.17 kB / 302.6 MB, free: 20.01 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.1571, allocations: 207.6 kB / 302.8 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.922e-05/0.1572, allocations: 98.47 kB / 302.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004692/0.1576, allocations: 377 kB / 303.3 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1577, allocations: 4.156 kB / 303.3 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1577, allocations: 3.234 kB / 303.3 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1577, allocations: 1.875 kB / 303.3 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.159, allocations: 1.172 MB / 304.5 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.159, allocations: 2.031 kB / 304.5 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.1592, allocations: 67.89 kB / 304.5 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.1594, allocations: 76.36 kB / 304.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.1594, allocations: 8.094 kB / 304.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.1606, allocations: 3.847 MB / 308.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1606, allocations: 2.062 kB / 308.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.1612, allocations: 0.6503 MB / 309.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.1614, allocations: 115.8 kB / 309.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.1614, allocations: 9.312 kB / 309.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.1616, allocations: 29.34 kB / 309.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.1617, allocations: 37.05 kB / 309.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1617, allocations: 14.31 kB / 309.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004473/0.1622, allocations: 471.6 kB / 309.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1622, allocations: 4 kB / 309.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006243/0.1628, allocations: 203.3 kB / 310 MB, free: 14.38 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0001823/0.163, allocations: 127 kB / 310.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006597/0.1636, allocations: 0.6821 MB / 310.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1636, allocations: 2.188 kB / 310.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003464/0.164, allocations: 0.4954 MB / 311.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006209/0.1646, allocations: 202.1 kB / 311.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1671, allocations: 1.616 MB / 313.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.1672, allocations: 172.1 kB / 313.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.1675, allocations: 102.5 kB / 313.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.1676, allocations: 53.19 kB / 313.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1676, allocations: 0 / 313.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01287/0.1805, allocations: 10.11 MB / 323.5 MB, free: 4.828 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_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: 3.2176424129866064]