Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001393/0.001393, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001583/0.001583, allocations: 174.3 kB / 24.92 MB, free: 8.773 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 1.033/1.033, allocations: 177.1 MB / 205.3 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2572/0.2572, allocations: 34.26 MB / 296.1 MB, free: 0.6055 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 325.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.553e-05, allocations: 5.922 kB / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003456/0.003482, allocations: 2 MB / 327.3 MB, free: 5.633 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.004572, allocations: 0.5576 MB / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.004675, allocations: 3.938 kB / 327.8 MB, free: 5.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.004807, allocations: 19.8 kB / 327.9 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.004919, allocations: 47.56 kB / 327.9 MB, free: 5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.005144, allocations: 51.88 kB / 328 MB, free: 4.949 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.005344, allocations: 159.8 kB / 328.1 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.005487, allocations: 42.48 kB / 328.2 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.005713, allocations: 103.7 kB / 328.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.005825, allocations: 39.89 kB / 328.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.005854, allocations: 12 kB / 328.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.724e-05/0.005931, allocations: 19.98 kB / 328.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.013e-05/0.005962, allocations: 27.86 kB / 328.4 MB, free: 4.555 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.006016, allocations: 47.91 kB / 328.4 MB, free: 4.508 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.006224, allocations: 103.6 kB / 328.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.006227, allocations: 4 kB / 328.5 MB, free: 4.402 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006227, allocations: 0 / 328.5 MB, free: 4.402 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.006231, allocations: 3.938 kB / 328.5 MB, free: 4.398 MB / 298.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.0004154/0.006647, allocations: 337.7 kB / 328.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.006683, allocations: 11.97 kB / 328.9 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.006821, allocations: 28.91 kB / 328.9 MB, free: 4.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.007011, allocations: 142.8 kB / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.007025, allocations: 8.375 kB / 329 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.007061, allocations: 20.31 kB / 329 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.007239, allocations: 102.9 kB / 329.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.007252, allocations: 192 / 329.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.007268, allocations: 12.12 kB / 329.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.007277, allocations: 3.984 kB / 329.2 MB, free: 3.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.109e-05/0.007348, allocations: 31.97 kB / 329.2 MB, free: 3.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.007857, allocations: 291.8 kB / 329.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.008003, allocations: 74.48 kB / 329.6 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.204e-05/0.008055, allocations: 25.72 kB / 329.6 MB, free: 3.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.008071, allocations: 12 kB / 329.6 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.008094, allocations: 30.56 kB / 329.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.723e-06/0.008096, allocations: 4 kB / 329.6 MB, free: 3.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001104/0.0092, allocations: 0.5495 MB / 330.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.009232, allocations: 51.41 kB / 330.2 MB, free: 2.527 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.009322, allocations: 132.4 kB / 330.4 MB, free: 2.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.00934, allocations: 33.7 kB / 330.4 MB, free: 2.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.009394, allocations: 104.5 kB / 330.5 MB, free: 2.242 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.009446, allocations: 79.3 kB / 330.6 MB, free: 2.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.009498, allocations: 33.7 kB / 330.6 MB, free: 2.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.761e-05/0.009596, allocations: 326.8 kB / 330.9 MB, free: 1.797 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.717e-05/0.009633, allocations: 15.98 kB / 330.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.832e-05/0.009691, allocations: 55.34 kB / 331 MB, free: 1.715 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.009802, allocations: 81.39 kB / 331.1 MB, free: 1.625 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.009803, allocations: 3.938 kB / 331.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002286/0.01003, allocations: 126.3 kB / 331.2 MB, free: 1.488 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.01005, allocations: 8 kB / 331.2 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.01005, allocations: 0 / 331.2 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001306/0.01018, allocations: 32.84 kB / 331.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.01036, allocations: 44.06 kB / 331.3 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.01147, allocations: 1.44 MB / 332.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.108e-05/0.01153, allocations: 8 kB / 332.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.01154, allocations: 7.938 kB / 332.7 MB, free: 15.86 MB / 314.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 8.218e-05/0.01162, allocations: 121.8 kB / 332.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.01166, allocations: 15.98 kB / 332.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.01169, allocations: 12.78 kB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01169, allocations: 4 kB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.01169, allocations: 0 / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.0117, allocations: 0 / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005212/0.01222, allocations: 349.2 kB / 333.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.01222, allocations: 0 / 333.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.0124, allocations: 48.12 kB / 333.3 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.66e-05/0.0125, allocations: 32.81 kB / 333.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.01251, allocations: 11.94 kB / 333.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.01333, allocations: 1.214 MB / 334.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.01333, allocations: 4.031 kB / 334.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.0136, allocations: 244.3 kB / 334.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.509e-05/0.01361, allocations: 15.89 kB / 334.8 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.01363, allocations: 8 kB / 334.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.058e-05/0.01371, allocations: 3.938 kB / 334.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.01376, allocations: 19.97 kB / 334.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.01377, allocations: 0 / 334.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.034e-05/0.0138, allocations: 28.2 kB / 334.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0138, allocations: 0 / 334.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003045/0.0141, allocations: 44 kB / 334.9 MB, free: 13.55 MB / 314.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 9.622e-05/0.0142, allocations: 84.39 kB / 335 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003301/0.01453, allocations: 209.4 kB / 335.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.01453, allocations: 4 kB / 335.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.01471, allocations: 173.6 kB / 335.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.01495, allocations: 28.11 kB / 335.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007902/0.01574, allocations: 374.7 kB / 335.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.124e-05/0.0158, allocations: 72.23 kB / 335.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.844e-05/0.01585, allocations: 9.484 kB / 335.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.232e-05/0.01593, allocations: 67.36 kB / 335.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01593, allocations: 0 / 335.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of Templates: time 0.004895/0.02083, allocations: 1.769 MB / 337.7 MB, free: 10.72 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.9609292186796665]