Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001001/0.001001, allocations: 72.33 kB / 22.21 MB, free: 2.301 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.001291/0.001291, allocations: 167.7 kB / 25.61 MB, free: 8.93 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.9772/0.9772, allocations: 177.1 MB / 206 MB, free: 4.5 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.1475/0.1475, allocations: 32.8 MB / 295.4 MB, free: 15.4 MB / 282.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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.959e-05, allocations: 4.172 kB / 377.3 MB, free: 25.63 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004818/0.004848, allocations: 2.366 MB / 379.6 MB, free: 23.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.006636, allocations: 0.8802 MB / 380.5 MB, free: 22.36 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.006839, allocations: 7.938 kB / 380.5 MB, free: 22.35 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003151/0.007154, allocations: 55.52 kB / 380.6 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.007425, allocations: 79.33 kB / 380.6 MB, free: 22.22 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.007921, allocations: 143.6 kB / 380.8 MB, free: 22.08 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.008389, allocations: 363.1 kB / 381.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.008569, allocations: 61.06 kB / 381.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004009/0.00897, allocations: 223.5 kB / 381.4 MB, free: 21.44 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.009203, allocations: 131.7 kB / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.009253, allocations: 28 kB / 381.6 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.009448, allocations: 87.91 kB / 381.7 MB, free: 21.2 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.009571, allocations: 75.73 kB / 381.7 MB, free: 21.12 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.009678, allocations: 99.8 kB / 381.8 MB, free: 21.03 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.0101, allocations: 295 kB / 382.1 MB, free: 20.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.01011, allocations: 4 kB / 382.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.01011, allocations: 0 / 382.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.01012, allocations: 0 / 382.1 MB, free: 20.73 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007573/0.01087, allocations: 0.6088 MB / 382.7 MB, free: 20.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.01092, allocations: 8.031 kB / 382.7 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.01113, allocations: 52.75 kB / 382.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.01141, allocations: 208.8 kB / 383 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.01144, allocations: 12.88 kB / 383 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.01149, allocations: 24.38 kB / 383 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.01185, allocations: 205.2 kB / 383.2 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.01187, allocations: 4.125 kB / 383.2 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.0119, allocations: 12.38 kB / 383.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.01191, allocations: 7.938 kB / 383.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.01214, allocations: 117.4 kB / 383.4 MB, free: 19.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009565/0.0131, allocations: 0.5878 MB / 383.9 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.01341, allocations: 167.1 kB / 384.1 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.01353, allocations: 67.64 kB / 384.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.01356, allocations: 4 kB / 384.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.01358, allocations: 57.69 kB / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.01359, allocations: 0 / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001835/0.01542, allocations: 0.8824 MB / 385.1 MB, free: 17.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.297e-05/0.01544, allocations: 51.41 kB / 385.2 MB, free: 17.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.01558, allocations: 239.4 kB / 385.4 MB, free: 17.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.01561, allocations: 37.7 kB / 385.4 MB, free: 17.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.01568, allocations: 195.4 kB / 385.6 MB, free: 16.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.513e-05/0.01576, allocations: 119 kB / 385.7 MB, free: 16.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.01586, allocations: 75.31 kB / 385.8 MB, free: 16.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.01594, allocations: 0.5079 MB / 386.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.01604, allocations: 51.95 kB / 386.4 MB, free: 16.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.01617, allocations: 102.7 kB / 386.5 MB, free: 16.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.01638, allocations: 159.8 kB / 386.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01638, allocations: 0 / 386.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005132/0.0169, allocations: 304.8 kB / 386.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.01692, allocations: 8 kB / 386.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.01693, allocations: 0 / 386.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003157/0.01724, allocations: 147.5 kB / 387.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.01742, allocations: 55.91 kB / 387.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004804/0.0179, allocations: 0.9 MB / 388 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.01806, allocations: 27.97 kB / 388.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.01808, allocations: 11.98 kB / 388.1 MB, free: 14.45 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: 8 (bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.0182, allocations: 176.8 kB / 388.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.01827, allocations: 35.8 kB / 388.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.004e-05/0.01833, allocations: 38.59 kB / 388.3 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.01834, allocations: 4 kB / 388.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01834, allocations: 8.016 kB / 388.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.01835, allocations: 0 / 388.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.01939, allocations: 0.7151 MB / 389.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.01939, allocations: 3.938 kB / 389.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.01957, allocations: 51.97 kB / 389.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/0.01982, allocations: 143.6 kB / 389.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.01985, allocations: 8 kB / 389.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003768/0.02023, allocations: 0.8778 MB / 390.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.02023, allocations: 4 kB / 390.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005042/0.02073, allocations: 485.2 kB / 390.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.205e-05/0.02082, allocations: 51.81 kB / 390.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.02085, allocations: 8 kB / 390.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.02096, allocations: 31.91 kB / 390.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.849e-05/0.02105, allocations: 51.89 kB / 390.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.02106, allocations: 8 kB / 390.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.527e-05/0.02111, allocations: 171.3 kB / 390.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02111, allocations: 0 / 390.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.02137, allocations: 72.03 kB / 391 MB, free: 11.41 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007991/0.02217, allocations: 350.7 kB / 391.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000346/0.02252, allocations: 203.3 kB / 391.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.02252, allocations: 0 / 391.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.02267, allocations: 120.4 kB / 391.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.02307, allocations: 56.72 kB / 391.7 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.02424, allocations: 0.6469 MB / 392.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.981e-05/0.02429, allocations: 89.05 kB / 392.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.648e-05/0.02436, allocations: 22.3 kB / 392.5 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.02447, allocations: 106.2 kB / 392.6 MB, free: 9.895 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02447, allocations: 0 / 392.6 MB, free: 9.895 MB / 314.7 MB Notification: Performance of Templates: time 0.007472/0.03194, allocations: 4.861 MB / 397.4 MB, free: 5.07 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.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: 3.3361722328700125]