Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009087/0.0009087, 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.0008835/0.0008835, 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.9297/0.9297, 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.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.2531/0.2531, allocations: 34.26 MB / 296.1 MB, free: 0.7344 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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.551e-05/1.672e-05, allocations: 5.5 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002494/0.002511, allocations: 2.383 MB / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.00361, allocations: 0.8962 MB / 328.5 MB, free: 4.426 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.255e-05/0.003702, allocations: 4 kB / 328.5 MB, free: 4.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.003926, allocations: 59.45 kB / 328.6 MB, free: 4.363 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.004071, allocations: 79.33 kB / 328.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.004334, allocations: 155.5 kB / 328.8 MB, free: 4.133 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.004598, allocations: 359.1 kB / 329.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.004717, allocations: 63.56 kB / 329.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002427/0.00496, allocations: 219.5 kB / 329.4 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.005121, allocations: 131.6 kB / 329.5 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/0.005155, allocations: 28 kB / 329.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.005268, allocations: 83.92 kB / 329.7 MB, free: 3.266 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.702e-05/0.005355, allocations: 79.72 kB / 329.7 MB, free: 3.188 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.099e-05/0.005436, allocations: 99.8 kB / 329.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.005713, allocations: 287 kB / 330.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.005715, allocations: 4 kB / 330.1 MB, free: 2.805 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.005716, allocations: 0 / 330.1 MB, free: 2.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.005719, allocations: 0 / 330.1 MB, free: 2.805 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.0004907/0.00621, allocations: 485.2 kB / 330.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.677e-05/0.006237, allocations: 8.031 kB / 330.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.006355, allocations: 56.83 kB / 330.7 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.006535, allocations: 183.2 kB / 330.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.006557, allocations: 20.88 kB / 330.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.006593, allocations: 28.36 kB / 330.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002382/0.006831, allocations: 205.2 kB / 331.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.006841, allocations: 192 / 331.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.006857, allocations: 4.375 kB / 331.1 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.006864, allocations: 11.94 kB / 331.1 MB, free: 1.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.007033, allocations: 97.42 kB / 331.2 MB, free: 1.672 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.007652, allocations: 448.8 kB / 331.6 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.007857, allocations: 158.4 kB / 331.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.245e-05/0.00793, allocations: 64.83 kB / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.007955, allocations: 4 kB / 331.9 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.007975, allocations: 42.56 kB / 331.9 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.102e-06/0.007976, allocations: 0 / 331.9 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001324/0.009301, allocations: 0.8663 MB / 332.8 MB, free: 8 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.00934, allocations: 55.41 kB / 332.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.009447, allocations: 184.4 kB / 333 MB, free: 15.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.009472, allocations: 37.7 kB / 333 MB, free: 15.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.009523, allocations: 136.7 kB / 333.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.009583, allocations: 123 kB / 333.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.009653, allocations: 65.61 kB / 333.3 MB, free: 15.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.00973, allocations: 338.8 kB / 333.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.739e-05/0.009797, allocations: 43.98 kB / 333.7 MB, free: 14.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.114e-05/0.009878, allocations: 88.09 kB / 333.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.01002, allocations: 155.9 kB / 334 MB, free: 14.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01002, allocations: 0 / 334 MB, free: 14.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002797/0.0103, allocations: 242.1 kB / 334.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.01031, allocations: 8 kB / 334.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01032, allocations: 3.938 kB / 334.2 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.01067, allocations: 144.7 kB / 334.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.01079, allocations: 47.97 kB / 334.4 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003202/0.01111, allocations: 0.6163 MB / 335 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.734e-05/0.0112, allocations: 32 kB / 335 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.01121, allocations: 11.98 kB / 335.1 MB, free: 13.59 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.476e-05/0.0113, allocations: 136.9 kB / 335.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.01133, allocations: 19.98 kB / 335.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.01137, allocations: 34.64 kB / 335.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.01137, allocations: 7.938 kB / 335.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.01137, allocations: 0 / 335.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.01137, allocations: 0 / 335.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006084/0.01198, allocations: 0.5503 MB / 335.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01198, allocations: 0 / 335.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.0121, allocations: 47.92 kB / 335.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.01227, allocations: 140.7 kB / 336 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.01229, allocations: 15.98 kB / 336 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002846/0.01258, allocations: 0.5967 MB / 336.6 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.01258, allocations: 0 / 336.6 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.01293, allocations: 369 kB / 337 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.01299, allocations: 31.91 kB / 337 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.01301, allocations: 12 kB / 337 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.055e-05/0.0131, allocations: 23.97 kB / 337 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.01317, allocations: 51.83 kB / 337.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.01319, allocations: 8 kB / 337.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.784e-05/0.01322, allocations: 53.02 kB / 337.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01322, allocations: 0 / 337.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000181/0.0134, allocations: 71.98 kB / 337.2 MB, free: 11.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.000893/0.0143, allocations: 460.9 kB / 337.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.01456, allocations: 185.1 kB / 337.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.01456, allocations: 8.062 kB / 337.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.01468, allocations: 109.6 kB / 338 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.01488, allocations: 51.91 kB / 338 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.01609, allocations: 0.6175 MB / 338.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.678e-05/0.01614, allocations: 89.05 kB / 338.7 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.643e-05/0.01619, allocations: 26.41 kB / 338.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.713e-05/0.01628, allocations: 83.36 kB / 338.8 MB, free: 9.898 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01628, allocations: 0 / 338.8 MB, free: 9.898 MB / 314.7 MB Notification: Performance of Templates: time 0.006305/0.02259, allocations: 4.733 MB / 343.5 MB, free: 5.203 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.0479605230502784]