Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001239/0.001239, allocations: 80.05 kB / 20.72 MB, free: 3.766 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.0009734/0.0009734, allocations: 169 kB / 24.14 MB, free: 356 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9413/0.9413, allocations: 158.6 MB / 186 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1634/0.1634, allocations: 32.38 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 299.1 MB, free: 2.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.486e-05/2.649e-05, allocations: 2.312 kB / 299.1 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004155/0.004182, allocations: 1.974 MB / 301.1 MB, free: 188 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1532/0.1574, allocations: 0.5332 MB / 301.6 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1575, allocations: 5.469 kB / 301.6 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1577, allocations: 22.78 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.1578, allocations: 40.64 kB / 301.7 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001889/0.158, allocations: 43.06 kB / 301.7 MB, free: 19.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.1582, allocations: 154.9 kB / 301.9 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1583, allocations: 40.22 kB / 301.9 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.1585, allocations: 90.75 kB / 302 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.1586, allocations: 47.02 kB / 302 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.1586, allocations: 11.62 kB / 302 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.819e-05/0.1586, allocations: 16.12 kB / 302.1 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.775e-05/0.1587, allocations: 29.31 kB / 302.1 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.1587, allocations: 45.69 kB / 302.1 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1589, allocations: 102.3 kB / 302.2 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1589, allocations: 1.906 kB / 302.2 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1589, allocations: 0 / 302.2 MB, free: 19.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.1589, allocations: 0.5625 kB / 302.2 MB, free: 19.14 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003321/0.1592, allocations: 339.4 kB / 302.6 MB, free: 18.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.1592, allocations: 8.531 kB / 302.6 MB, free: 18.87 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.1593, allocations: 22.42 kB / 302.6 MB, free: 18.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.1594, allocations: 136.6 kB / 302.7 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1594, allocations: 8.281 kB / 302.7 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.1594, allocations: 18.62 kB / 302.8 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.1596, allocations: 109.5 kB / 302.9 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1596, allocations: 4.484 kB / 302.9 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1596, allocations: 10.48 kB / 302.9 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1596, allocations: 3.344 kB / 302.9 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.36e-05/0.1597, allocations: 33.88 kB / 302.9 MB, free: 18.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003809/0.16, allocations: 290.6 kB / 303.2 MB, free: 18.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.1602, allocations: 75.84 kB / 303.3 MB, free: 18.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.583e-05/0.1602, allocations: 31.14 kB / 303.3 MB, free: 18.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.1602, allocations: 2.906 kB / 303.3 MB, free: 18.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.604e-05/0.1602, allocations: 37.89 kB / 303.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 9.62e-07/0.1602, allocations: 0.7812 kB / 303.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007948/0.161, allocations: 0.5454 MB / 303.9 MB, free: 18.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.161, allocations: 60.69 kB / 304 MB, free: 18.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.713e-05/0.1611, allocations: 130.8 kB / 304.1 MB, free: 17.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.1611, allocations: 29.77 kB / 304.1 MB, free: 17.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.283e-05/0.1611, allocations: 113.1 kB / 304.2 MB, free: 17.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.1612, allocations: 71.81 kB / 304.3 MB, free: 17.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.1612, allocations: 36.14 kB / 304.3 MB, free: 17.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.608e-05/0.1613, allocations: 327.7 kB / 304.6 MB, free: 17.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.295e-05/0.1613, allocations: 14.98 kB / 304.7 MB, free: 17.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.154e-05/0.1613, allocations: 46.05 kB / 304.7 MB, free: 17.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.165e-05/0.1614, allocations: 84.86 kB / 304.8 MB, free: 17.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.1614, allocations: 0 / 304.8 MB, free: 17.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001595/0.1616, allocations: 132.2 kB / 304.9 MB, free: 17.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1616, allocations: 5.906 kB / 304.9 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1616, allocations: 1.719 kB / 304.9 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001041/0.1617, allocations: 29.16 kB / 305 MB, free: 17.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.1618, allocations: 50.09 kB / 305 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006523/0.1625, allocations: 1.437 MB / 306.4 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.642e-05/0.1625, allocations: 7.922 kB / 306.4 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1625, allocations: 3.281 kB / 306.4 MB, free: 16.04 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/0.1626, allocations: 125.2 kB / 306.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.1626, allocations: 15.78 kB / 306.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.988e-05/0.1626, allocations: 17.83 kB / 306.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1626, allocations: 2.75 kB / 306.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1626, allocations: 1 kB / 306.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1626, allocations: 5.531 kB / 306.6 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003192/0.1629, allocations: 336.8 kB / 306.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1629, allocations: 0 / 306.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.163, allocations: 50.31 kB / 307 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.77e-05/0.1631, allocations: 29.08 kB / 307 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.1631, allocations: 4.484 kB / 307 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004397/0.1636, allocations: 1.22 MB / 308.2 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1636, allocations: 5 kB / 308.2 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001846/0.1637, allocations: 249.8 kB / 308.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.1638, allocations: 8 kB / 308.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.739e-06/0.1638, allocations: 2.906 kB / 308.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.356e-05/0.1638, allocations: 11.02 kB / 308.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.1638, allocations: 11.77 kB / 308.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.1639, allocations: 7.859 kB / 308.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.856e-05/0.1639, allocations: 19.88 kB / 308.6 MB, free: 14.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.1639, allocations: 0 / 308.6 MB, free: 14.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001841/0.1641, allocations: 46.62 kB / 308.6 MB, free: 14.32 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 7.096e-05/0.1641, allocations: 82.31 kB / 308.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002438/0.1644, allocations: 223.2 kB / 308.9 MB, free: 14.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1644, allocations: 1.281 kB / 308.9 MB, free: 14.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.1645, allocations: 175.6 kB / 309.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001595/0.1646, allocations: 28.94 kB / 309.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005806/0.1652, allocations: 365.3 kB / 309.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.374e-05/0.1653, allocations: 73.59 kB / 309.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.712e-05/0.1653, allocations: 10.92 kB / 309.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.1654, allocations: 67.09 kB / 309.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1654, allocations: 0 / 309.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of Templates: time 0.003799/0.1692, allocations: 1.765 MB / 311.4 MB, free: 13.39 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.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.990613869857043]