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.0009723/0.0009723, 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.001119/0.001119, allocations: 173.9 kB / 24.92 MB, free: 9.18 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.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.2616/0.2616, allocations: 32.8 MB / 294.6 MB, free: 1.238 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.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 3.186e-06/3.186e-06, allocations: 3.984 kB / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.983e-05, allocations: 7.781 kB / 323.3 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003554/0.003584, allocations: 2.42 MB / 325.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.004751, allocations: 0.8994 MB / 326.6 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.004851, allocations: 7.938 kB / 326.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.00509, allocations: 51.56 kB / 326.6 MB, free: 6.281 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.005239, allocations: 79.28 kB / 326.7 MB, free: 6.203 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.00549, allocations: 151.5 kB / 326.9 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.005755, allocations: 367.7 kB / 327.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.005897, allocations: 63.08 kB / 327.3 MB, free: 5.633 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.006163, allocations: 211.6 kB / 327.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.00634, allocations: 131.7 kB / 327.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.006375, allocations: 28 kB / 327.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.006509, allocations: 91.83 kB / 327.7 MB, free: 5.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.006596, allocations: 71.75 kB / 327.8 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.778e-05/0.006674, allocations: 103.8 kB / 327.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.006971, allocations: 295 kB / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006974, allocations: 0 / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.006975, allocations: 4 kB / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.00698, allocations: 0 / 328.2 MB, free: 4.715 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0005205/0.007501, allocations: 485.1 kB / 328.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.007531, allocations: 15.92 kB / 328.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.007658, allocations: 44.91 kB / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.007856, allocations: 183.2 kB / 328.9 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.007879, allocations: 16.88 kB / 328.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.007909, allocations: 28.31 kB / 328.9 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.00815, allocations: 213.2 kB / 329.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.008161, allocations: 192 / 329.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.008176, allocations: 8.375 kB / 329.2 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.008183, allocations: 7.938 kB / 329.2 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.008332, allocations: 97.42 kB / 329.3 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.008957, allocations: 449.5 kB / 329.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.009181, allocations: 162.1 kB / 329.9 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.27e-05/0.009253, allocations: 60.83 kB / 329.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.009274, allocations: 11.94 kB / 329.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.009295, allocations: 34.56 kB / 330 MB, free: 2.848 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.009297, allocations: 4 kB / 330 MB, free: 2.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001316/0.01061, allocations: 0.8658 MB / 330.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.01064, allocations: 55.41 kB / 330.9 MB, free: 1.859 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.01075, allocations: 184.4 kB / 331.1 MB, free: 1.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.01077, allocations: 37.7 kB / 331.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.01083, allocations: 136.7 kB / 331.2 MB, free: 1.484 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.01089, allocations: 123 kB / 331.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-05/0.01097, allocations: 73.61 kB / 331.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.931e-05/0.01105, allocations: 326.8 kB / 331.8 MB, free: 0.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.889e-05/0.01112, allocations: 47.97 kB / 331.8 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.713e-05/0.01121, allocations: 91.38 kB / 331.9 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.01135, allocations: 159.9 kB / 332 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.01136, allocations: 3.938 kB / 332 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002886/0.01164, allocations: 230.1 kB / 332.3 MB, free: 408 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.01166, allocations: 12.06 kB / 332.3 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.01166, allocations: 0 / 332.3 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002283/0.01189, allocations: 144.7 kB / 332.4 MB, free: 248 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.01204, allocations: 55.91 kB / 332.5 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003459/0.01238, allocations: 0.6208 MB / 333.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.381e-05/0.01248, allocations: 32 kB / 333.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.01249, allocations: 8 kB / 333.1 MB, free: 15.5 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 8.75e-05/0.01258, allocations: 136.9 kB / 333.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.01262, allocations: 23.97 kB / 333.3 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.01266, allocations: 34.59 kB / 333.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01266, allocations: 4 kB / 333.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.01266, allocations: 0 / 333.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.01267, allocations: 3.984 kB / 333.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006272/0.01329, allocations: 0.5425 MB / 333.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.0133, allocations: 7.938 kB / 333.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.01343, allocations: 51.97 kB / 333.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001805/0.01361, allocations: 132.8 kB / 334.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.01363, allocations: 20.05 kB / 334.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002926/0.01392, allocations: 0.5995 MB / 334.7 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01392, allocations: 0 / 334.7 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.01431, allocations: 372.9 kB / 335.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.01438, allocations: 31.91 kB / 335.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.01441, allocations: 15.98 kB / 335.1 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.833e-05/0.01451, allocations: 23.92 kB / 335.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/0.01459, allocations: 47.89 kB / 335.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.0146, allocations: 11.98 kB / 335.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.213e-05/0.01464, allocations: 53.03 kB / 335.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01464, allocations: 0 / 335.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.01484, allocations: 64 kB / 335.3 MB, free: 13.24 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.0009298/0.01577, allocations: 460.9 kB / 335.7 MB, free: 13.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.01606, allocations: 188.4 kB / 335.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.01606, allocations: 4.125 kB / 335.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.01619, allocations: 105.5 kB / 336 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.0164, allocations: 55.89 kB / 336.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.01749, allocations: 0.6169 MB / 336.7 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.075e-05/0.01755, allocations: 89.05 kB / 336.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.618e-05/0.01761, allocations: 22.42 kB / 336.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.01772, allocations: 87.36 kB / 336.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01772, allocations: 0 / 336.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of Templates: time 0.006377/0.02409, allocations: 4.782 MB / 341.7 MB, free: 7.059 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 -s gbode -gbm=radauIIA3 -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.12201542686671]