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.0009932/0.0009932, allocations: 80.8 kB / 21.49 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.001016/0.001016, allocations: 168.7 kB / 24.91 MB, free: 9.191 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.9227/0.9227, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2382/0.2382, 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 1.232e-06/1.232e-06, allocations: 0 / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.643e-05, allocations: 4.984 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002574/0.002591, allocations: 2.377 MB / 325.6 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.003775, allocations: 0.8994 MB / 326.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.703e-05/0.003872, allocations: 7.938 kB / 326.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.004094, allocations: 55.5 kB / 326.5 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.004238, allocations: 79.34 kB / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.004526, allocations: 151.5 kB / 326.8 MB, free: 6.141 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002643/0.00479, allocations: 363.8 kB / 327.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.004918, allocations: 63.08 kB / 327.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.005159, allocations: 219.5 kB / 327.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.005329, allocations: 131.6 kB / 327.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/0.005363, allocations: 32 kB / 327.6 MB, free: 5.348 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.005474, allocations: 87.91 kB / 327.6 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.005555, allocations: 71.8 kB / 327.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.956e-05/0.005625, allocations: 95.73 kB / 327.8 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.005918, allocations: 295 kB / 328.1 MB, free: 4.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.005919, allocations: 0 / 328.1 MB, free: 4.809 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.00592, allocations: 0 / 328.1 MB, free: 4.809 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.005924, allocations: 0 / 328.1 MB, free: 4.809 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.0005029/0.006427, allocations: 0.4893 MB / 328.6 MB, free: 4.297 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.788e-05/0.006455, allocations: 11.98 kB / 328.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.006568, allocations: 44.89 kB / 328.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.006748, allocations: 179.2 kB / 328.8 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.006772, allocations: 20.88 kB / 328.8 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.006804, allocations: 20.38 kB / 328.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.007024, allocations: 205.2 kB / 329.1 MB, free: 3.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.007035, allocations: 8.188 kB / 329.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.007052, allocations: 12.31 kB / 329.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.00706, allocations: 11.94 kB / 329.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.007205, allocations: 101.4 kB / 329.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.007826, allocations: 449.5 kB / 329.6 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.008061, allocations: 150.4 kB / 329.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.457e-05/0.008136, allocations: 68.83 kB / 329.8 MB, free: 2.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.008156, allocations: 4 kB / 329.8 MB, free: 2.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.008173, allocations: 30.56 kB / 329.9 MB, free: 2.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.012e-06/0.008174, allocations: 0 / 329.9 MB, free: 2.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001293/0.009467, allocations: 0.8736 MB / 330.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.009494, allocations: 59.34 kB / 330.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.009657, allocations: 184.4 kB / 331 MB, free: 1.746 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.009679, allocations: 29.7 kB / 331 MB, free: 1.711 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.009728, allocations: 144.7 kB / 331.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.009785, allocations: 123 kB / 331.3 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.009856, allocations: 65.62 kB / 331.3 MB, free: 1.375 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.009927, allocations: 342.8 kB / 331.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.009991, allocations: 39.98 kB / 331.7 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-05/0.01007, allocations: 87.38 kB / 331.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.01021, allocations: 151.9 kB / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01021, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002755/0.01049, allocations: 246.1 kB / 332.2 MB, free: 492 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.0105, allocations: 7.938 kB / 332.2 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.0105, allocations: 0 / 332.2 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.01071, allocations: 144.8 kB / 332.3 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.01083, allocations: 55.91 kB / 332.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004479/0.01127, allocations: 0.6047 MB / 333 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.995e-05/0.01136, allocations: 31.97 kB / 333 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.01138, allocations: 11.92 kB / 333 MB, free: 15.6 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.345e-05/0.01146, allocations: 140.9 kB / 333.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.01149, allocations: 24.02 kB / 333.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.01153, allocations: 38.64 kB / 333.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.01154, allocations: 7.938 kB / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.01154, allocations: 0 / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.01154, allocations: 0 / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005982/0.01214, allocations: 0.5347 MB / 333.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01214, allocations: 8.031 kB / 333.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.01225, allocations: 47.86 kB / 333.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.01242, allocations: 137.6 kB / 334 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.01244, allocations: 7.984 kB / 334 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002716/0.01271, allocations: 0.6006 MB / 334.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01271, allocations: 0 / 334.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003441/0.01306, allocations: 373 kB / 334.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.01312, allocations: 35.89 kB / 335 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.01315, allocations: 16 kB / 335 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/0.01324, allocations: 23.97 kB / 335 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.01331, allocations: 51.83 kB / 335.1 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.01332, allocations: 4 kB / 335.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.93e-05/0.01336, allocations: 57.05 kB / 335.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01336, allocations: 0 / 335.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001895/0.01355, allocations: 71.98 kB / 335.2 MB, free: 13.34 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.0008545/0.0144, allocations: 454.4 kB / 335.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.01468, allocations: 188.5 kB / 335.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.01468, allocations: 4 kB / 335.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.01479, allocations: 105.6 kB / 335.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.01499, allocations: 55.91 kB / 336 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.01626, allocations: 0.6209 MB / 336.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.364e-05/0.01631, allocations: 93.05 kB / 336.7 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.171e-05/0.01638, allocations: 22.28 kB / 336.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.126e-05/0.01647, allocations: 83.34 kB / 336.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01647, allocations: 0 / 336.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of Templates: time 0.00607/0.02254, allocations: 4.729 MB / 341.5 MB, free: 7.207 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: 2.9913242841139436]