Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001978/0.001978, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00244/0.00244, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.914e-05/3.127e-05, allocations: 2.312 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01143/0.01146, allocations: 7.166 MB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.01734, allocations: 2.486 MB / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.01853, allocations: 27.88 kB / 281.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002135/0.02066, allocations: 0.5323 MB / 282.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.02266, allocations: 0.5116 MB / 282.9 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009487/0.02361, allocations: 259.6 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00264/0.02625, allocations: 1.532 MB / 284.7 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009442/0.0272, allocations: 371.2 kB / 285.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.02909, allocations: 0.8651 MB / 285.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000874/0.02996, allocations: 438.6 kB / 286.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001977/0.03016, allocations: 136 kB / 286.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003688/0.03053, allocations: 176 kB / 286.7 MB, free: 3.234 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.0308, allocations: 294.8 kB / 287 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005978/0.0314, allocations: 458.9 kB / 287.4 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002515/0.03391, allocations: 1.729 MB / 289.1 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.03392, allocations: 3.938 kB / 289.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.03392, allocations: 0 / 289.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.03394, allocations: 0 / 289.1 MB, free: 0.7578 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.1126/0.1465, allocations: 1.394 MB / 290.5 MB, free: 28.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.373e-05/0.1466, allocations: 12.73 kB / 290.5 MB, free: 28.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007657/0.1474, allocations: 270.2 kB / 290.8 MB, free: 28.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1485, allocations: 0.6986 MB / 291.5 MB, free: 28.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/0.1486, allocations: 68.44 kB / 291.6 MB, free: 28.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002335/0.1488, allocations: 103.3 kB / 291.7 MB, free: 28.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.1504, allocations: 1.033 MB / 292.7 MB, free: 27.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.1504, allocations: 6.781 kB / 292.7 MB, free: 27.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.1505, allocations: 42.25 kB / 292.8 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.121e-05/0.1505, allocations: 23.88 kB / 292.8 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.1518, allocations: 0.6346 MB / 293.4 MB, free: 27.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.1559, allocations: 3.411 MB / 296.8 MB, free: 25.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006862/0.1566, allocations: 337.1 kB / 297.2 MB, free: 25.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.1571, allocations: 262.7 kB / 297.4 MB, free: 24.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.1572, allocations: 6.953 kB / 297.4 MB, free: 24.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.1572, allocations: 46.25 kB / 297.5 MB, free: 24.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.974e-06/0.1572, allocations: 0 / 297.5 MB, free: 24.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.002483/0.1597, allocations: 1.262 MB / 298.7 MB, free: 24.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.1597, allocations: 82.75 kB / 298.8 MB, free: 24.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008861/0.1606, allocations: 0.7497 MB / 299.6 MB, free: 23.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1606, allocations: 35.8 kB / 299.6 MB, free: 23.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000282/0.1609, allocations: 0.5761 MB / 300.2 MB, free: 23.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.197e-05/0.161, allocations: 162.3 kB / 300.3 MB, free: 23.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.1613, allocations: 129.3 kB / 300.5 MB, free: 23.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1614, allocations: 390.2 kB / 300.8 MB, free: 22.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.1617, allocations: 168 kB / 301 MB, free: 22.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004122/0.1621, allocations: 489.5 kB / 301.5 MB, free: 22.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007209/0.1628, allocations: 0.6532 MB / 302.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1628, allocations: 4.406 kB / 302.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0012/0.164, allocations: 0.804 MB / 302.9 MB, free: 21.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1641, allocations: 8.906 kB / 302.9 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.1641, allocations: 14 kB / 303 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003537/0.1644, allocations: 88.41 kB / 303 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.1649, allocations: 154.8 kB / 303.2 MB, free: 21.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.1665, allocations: 2.883 MB / 306.1 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/0.167, allocations: 27.69 kB / 306.1 MB, free: 18.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.1671, allocations: 35.5 kB / 306.1 MB, free: 18.5 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.0002962/0.1674, allocations: 257.2 kB / 306.4 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.1675, allocations: 103.7 kB / 306.5 MB, free: 18.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008471/0.1683, allocations: 489.8 kB / 307 MB, free: 18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1683, allocations: 8.219 kB / 307 MB, free: 18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.1683, allocations: 1.375 kB / 307 MB, free: 18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1683, allocations: 2.625 kB / 307 MB, free: 18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.17, allocations: 1.206 MB / 308.2 MB, free: 17.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.17, allocations: 3.375 kB / 308.2 MB, free: 17.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.1703, allocations: 78.53 kB / 308.3 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.1705, allocations: 69.73 kB / 308.3 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.1706, allocations: 11.34 kB / 308.4 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.172, allocations: 2.862 MB / 311.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.172, allocations: 7.969 kB / 311.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009908/0.173, allocations: 0.7755 MB / 312 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.1732, allocations: 111.5 kB / 312.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.761e-05/0.1733, allocations: 12 kB / 312.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004534/0.1737, allocations: 27.92 kB / 312.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.1738, allocations: 39.81 kB / 312.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.1738, allocations: 16 kB / 312.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005122/0.1744, allocations: 0.5029 MB / 312.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1744, allocations: 0 / 312.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008454/0.1752, allocations: 207.9 kB / 312.9 MB, free: 12.57 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.0001707/0.1754, allocations: 124 kB / 313 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009874/0.1764, allocations: 0.669 MB / 313.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1764, allocations: 0 / 313.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.1768, allocations: 438.8 kB / 314.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008997/0.1777, allocations: 206.7 kB / 314.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.1801, allocations: 1.661 MB / 316 MB, free: 9.418 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.1803, allocations: 413.7 kB / 316.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003671/0.1807, allocations: 100.8 kB / 316.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.1808, allocations: 56.48 kB / 316.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1808, allocations: 0 / 316.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of Templates: time 0.01565/0.1965, allocations: 10.06 MB / 326.6 MB, free: 14.99 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.843619209015742]