Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.0009442/0.0009442, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.004489/0.004489, allocations: 157.8 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9019/0.9019, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2733/0.2733, allocations: 32.79 MB / 294.2 MB, free: 1.211 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 440.8 MB, free: 3.777 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.805e-05/1.929e-05, allocations: 6.219 kB / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001928/0.001947, allocations: 1.874 MB / 442.7 MB, free: 1.883 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006444/0.002592, allocations: 0.5298 MB / 443.2 MB, free: 1.348 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.326e-05/0.002665, allocations: 4 kB / 443.2 MB, free: 1.344 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.002766, allocations: 23.67 kB / 443.3 MB, free: 1.32 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.609e-05/0.002832, allocations: 47.62 kB / 443.3 MB, free: 1.273 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.003025, allocations: 43.88 kB / 443.3 MB, free: 1.23 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.003162, allocations: 151.3 kB / 443.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.00329, allocations: 45.77 kB / 443.5 MB, free: 1.035 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.003429, allocations: 99.72 kB / 443.6 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.41e-05/0.003503, allocations: 47.81 kB / 443.7 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.003522, allocations: 12 kB / 443.7 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/0.003562, allocations: 20 kB / 443.7 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.794e-05/0.003579, allocations: 23.92 kB / 443.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.003614, allocations: 47.84 kB / 443.8 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.00378, allocations: 155.5 kB / 443.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.003782, allocations: 0 / 443.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.003783, allocations: 0 / 443.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.003787, allocations: 0 / 443.9 MB, free: 0.6367 MB / 410.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.0005165/0.004303, allocations: 365.7 kB / 444.3 MB, free: 256 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.004334, allocations: 8.031 kB / 444.3 MB, free: 248 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.906e-05/0.004423, allocations: 28.83 kB / 444.3 MB, free: 220 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.004578, allocations: 145.5 kB / 444.5 MB, free: 48 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.00459, allocations: 12.38 kB / 444.5 MB, free: 36 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.004616, allocations: 20.33 kB / 444.5 MB, free: 16 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1653/0.1699, allocations: 129.8 kB / 444.6 MB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1699, allocations: 2.719 kB / 444.6 MB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.1699, allocations: 6.312 kB / 444.6 MB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1699, allocations: 5.203 kB / 444.6 MB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.1701, allocations: 86.27 kB / 444.7 MB, free: 46.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004694/0.1705, allocations: 365.2 kB / 445.1 MB, free: 46.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.1707, allocations: 118.3 kB / 445.2 MB, free: 46.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/0.1708, allocations: 51.66 kB / 445.3 MB, free: 46.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.1708, allocations: 0 / 445.3 MB, free: 46.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.1708, allocations: 38.91 kB / 445.3 MB, free: 46.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 9.02e-07/0.1708, allocations: 0 / 445.3 MB, free: 46.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008976/0.1717, allocations: 0.6652 MB / 446 MB, free: 46.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.1717, allocations: 58.47 kB / 446 MB, free: 46.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.335e-05/0.1718, allocations: 122.2 kB / 446.1 MB, free: 45.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.1718, allocations: 25.7 kB / 446.2 MB, free: 45.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.1718, allocations: 119.2 kB / 446.3 MB, free: 45.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.1718, allocations: 69.44 kB / 446.3 MB, free: 45.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.1719, allocations: 40.92 kB / 446.4 MB, free: 45.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.735e-05/0.1719, allocations: 320.8 kB / 446.7 MB, free: 45.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.836e-05/0.172, allocations: 43.7 kB / 446.7 MB, free: 45.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.525e-05/0.172, allocations: 76.72 kB / 446.8 MB, free: 45.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.1722, allocations: 133.7 kB / 446.9 MB, free: 45.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1722, allocations: 0 / 446.9 MB, free: 45.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002138/0.1724, allocations: 212.7 kB / 447.2 MB, free: 45.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1724, allocations: 9.25 kB / 447.2 MB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1724, allocations: 3.531 kB / 447.2 MB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/0.1726, allocations: 41.33 kB / 447.2 MB, free: 45.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.1727, allocations: 37.52 kB / 447.2 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007894/0.1735, allocations: 1.606 MB / 448.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.11e-05/0.1735, allocations: 6.688 kB / 448.9 MB, free: 43.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.1735, allocations: 6.719 kB / 448.9 MB, free: 43.66 MB / 410.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 7.246e-05/0.1736, allocations: 135.5 kB / 449 MB, free: 43.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.1736, allocations: 13.33 kB / 449 MB, free: 43.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.122e-05/0.1736, allocations: 15.69 kB / 449 MB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1736, allocations: 0 / 449 MB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1736, allocations: 6.438 kB / 449 MB, free: 43.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.1736, allocations: 3.375 kB / 449 MB, free: 43.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.174, allocations: 484 kB / 449.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.174, allocations: 2.906 kB / 449.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.483e-05/0.1741, allocations: 39.19 kB / 449.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.234e-05/0.1742, allocations: 32.97 kB / 449.6 MB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.1742, allocations: 3 kB / 449.6 MB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004539/0.1746, allocations: 1.34 MB / 450.9 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1746, allocations: 6.656 kB / 450.9 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.1749, allocations: 347.6 kB / 451.3 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.324e-06/0.1749, allocations: 13.12 kB / 451.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-06/0.1749, allocations: 4 kB / 451.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.487e-05/0.1749, allocations: 10.31 kB / 451.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.175, allocations: 12.08 kB / 451.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.175, allocations: 5.812 kB / 451.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.227e-05/0.175, allocations: 104.7 kB / 451.4 MB, free: 41.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.175, allocations: 0 / 451.4 MB, free: 41.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002111/0.1752, allocations: 39.53 kB / 451.5 MB, free: 41.54 MB / 410.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.746e-05/0.1753, allocations: 104.3 kB / 451.6 MB, free: 41.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002979/0.1756, allocations: 254.3 kB / 451.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1756, allocations: 0.75 kB / 451.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.1757, allocations: 196 kB / 452 MB, free: 41.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.176, allocations: 28.09 kB / 452 MB, free: 41.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000492/0.1764, allocations: 408.1 kB / 452.4 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.552e-05/0.1765, allocations: 108.9 kB / 452.5 MB, free: 40.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/0.1765, allocations: 21.09 kB / 452.5 MB, free: 40.75 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1765, allocations: 0 / 452.5 MB, free: 40.75 MB / 410.7 MB Notification: Performance of Templates: time 0.002652/0.1792, allocations: 2.481 MB / 455 MB, free: 40.57 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.990787704475224]