Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.001279/0.001279, allocations: 117.2 kB / 18.45 MB, free: 4.613 MB / 14.72 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.001375/0.001375, allocations: 206.6 kB / 21.4 MB, free: 1.668 MB / 14.72 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.485/1.485, allocations: 227.4 MB / 251.6 MB, free: 80 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2491/0.2491, allocations: 46.17 MB / 351.1 MB, free: 14.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 84.3 kB / 490.2 MB, free: 28.19 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.14, allocations: 62.45 MB / 0.5397 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004559/0.1446, allocations: 3.037 MB / 0.5426 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1466, allocations: 1.071 MB / 0.5437 GB, free: 256 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.1468, allocations: 7.938 kB / 0.5437 GB, free: 248 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.1471, allocations: 63.38 kB / 0.5437 GB, free: 184 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.1473, allocations: 118.9 kB / 0.5439 GB, free: 64 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.1479, allocations: 167.6 kB / 0.544 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005161/0.1484, allocations: 457.8 kB / 0.5445 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.1487, allocations: 115.5 kB / 0.5446 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.1489, allocations: 159.4 kB / 0.5447 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.1492, allocations: 183.1 kB / 0.5449 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-05/0.1492, allocations: 28 kB / 0.5449 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1494, allocations: 59.98 kB / 0.545 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.152e-05/0.1495, allocations: 75.69 kB / 0.545 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1497, allocations: 191.1 kB / 0.5452 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005641/0.1502, allocations: 450 kB / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1503, allocations: 0 / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1503, allocations: 0 / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1503, allocations: 0 / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00107/0.1513, allocations: 0.6693 MB / 0.5463 GB, free: 13.49 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1514, allocations: 8.031 kB / 0.5463 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002914/0.1517, allocations: 68.64 kB / 0.5464 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.1521, allocations: 299.3 kB / 0.5467 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.1522, allocations: 29.38 kB / 0.5467 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.052e-05/0.1523, allocations: 48.25 kB / 0.5467 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.1529, allocations: 359.5 kB / 0.5471 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.1529, allocations: 4 kB / 0.5471 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.153, allocations: 16 kB / 0.5471 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.153, allocations: 8 kB / 0.5471 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004531/0.1534, allocations: 223.8 kB / 0.5473 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.1557, allocations: 1.593 MB / 0.5489 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005923/0.1563, allocations: 303.7 kB / 0.5492 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1564, allocations: 97.17 kB / 0.5493 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.1565, allocations: 0 / 0.5493 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.1565, allocations: 46.48 kB / 0.5493 GB, free: 10.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.233e-06/0.1565, allocations: 0 / 0.5493 GB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007107/0.1572, allocations: 285.8 kB / 0.5496 GB, free: 9.871 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.1574, allocations: 183.9 kB / 0.5498 GB, free: 9.648 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.1576, allocations: 234.6 kB / 0.55 GB, free: 9.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1577, allocations: 29.7 kB / 0.55 GB, free: 9.375 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.1578, allocations: 220.2 kB / 0.5502 GB, free: 9.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.465e-05/0.1579, allocations: 111.1 kB / 0.5503 GB, free: 9.047 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.158, allocations: 82.08 kB / 0.5504 GB, free: 8.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1582, allocations: 346.8 kB / 0.5507 GB, free: 8.609 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.1584, allocations: 80.83 kB / 0.5508 GB, free: 8.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.1587, allocations: 245.7 kB / 0.551 GB, free: 8.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005076/0.1592, allocations: 365.1 kB / 0.5514 GB, free: 7.785 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1592, allocations: 7.938 kB / 0.5514 GB, free: 7.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006163/0.1599, allocations: 380.8 kB / 0.5518 GB, free: 7.398 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1599, allocations: 8 kB / 0.5518 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1599, allocations: 4 kB / 0.5518 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1599, allocations: 8 kB / 0.5518 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.1603, allocations: 108.5 kB / 0.5519 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.1603, allocations: 15.92 kB / 0.5519 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.1605, allocations: 43.73 kB / 0.5519 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.1606, allocations: 20 kB / 0.552 GB, free: 7.195 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.1608, allocations: 161.6 kB / 0.5521 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.1609, allocations: 35.8 kB / 0.5521 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.1611, allocations: 87.64 kB / 0.5522 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1611, allocations: 4 kB / 0.5522 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.1611, allocations: 12 kB / 0.5522 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1611, allocations: 4 kB / 0.5523 GB, free: 6.879 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006912/0.1618, allocations: 349.3 kB / 0.5526 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1619, allocations: 4 kB / 0.5526 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/0.1622, allocations: 79.89 kB / 0.5527 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1623, allocations: 0 / 0.5527 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.1623, allocations: 8 kB / 0.5527 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1623, allocations: 4 kB / 0.5527 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1623, allocations: 3.938 kB / 0.5527 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007901/0.1631, allocations: 0.7664 MB / 0.5534 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.482e-05/0.1632, allocations: 100.9 kB / 0.5535 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.1632, allocations: 11.98 kB / 0.5535 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.1635, allocations: 12 kB / 0.5535 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.828e-05/0.1636, allocations: 27.91 kB / 0.5536 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.1636, allocations: 8 kB / 0.5536 GB, free: 5.426 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1638, allocations: 169.9 kB / 0.5537 GB, free: 5.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1638, allocations: 0 / 0.5537 GB, free: 5.262 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005859/0.1644, allocations: 103.8 kB / 0.5538 GB, free: 5.16 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001292/0.1645, allocations: 99.19 kB / 0.5539 GB, free: 5.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.165, allocations: 235.7 kB / 0.5542 GB, free: 4.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.1651, allocations: 4.188 kB / 0.5542 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1652, allocations: 101 kB / 0.5543 GB, free: 4.723 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008666/0.1661, allocations: 89.81 kB / 0.5543 GB, free: 4.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.1682, allocations: 1.312 MB / 0.5556 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.1686, allocations: 0.7912 MB / 0.5564 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.1688, allocations: 34.95 kB / 0.5564 GB, free: 2.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.1689, allocations: 27.44 kB / 0.5565 GB, free: 2.402 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1689, allocations: 0 / 0.5565 GB, free: 2.402 MB / 414.1 MB Notification: Performance of Templates: time 0.00738/0.1763, allocations: 3.099 MB / 0.5595 GB, free: 15.34 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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: 5.087697176262736]