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.001585/0.001585, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001528/0.001528, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.038/1.038, allocations: 177.1 MB / 205 MB, free: 5.301 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.2672/0.2672, allocations: 32.8 MB / 294.3 MB, free: 1.227 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.392e-06/1.392e-06, allocations: 0 / 376 MB, free: 4.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.464e-05, allocations: 6.312 kB / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002919/0.002944, allocations: 2.401 MB / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.004075, allocations: 0.8839 MB / 379.3 MB, free: 1.395 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.004187, allocations: 7.938 kB / 379.3 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002539/0.004441, allocations: 51.56 kB / 379.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.004594, allocations: 75.34 kB / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.004917, allocations: 159.4 kB / 379.6 MB, free: 1.105 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.005175, allocations: 359.2 kB / 379.9 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.005312, allocations: 57.12 kB / 380 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.005564, allocations: 223.5 kB / 380.2 MB, free: 484 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.005735, allocations: 127.7 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.005778, allocations: 28 kB / 380.4 MB, free: 328 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.005927, allocations: 87.91 kB / 380.4 MB, free: 240 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.006036, allocations: 75.73 kB / 380.5 MB, free: 164 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.743e-05/0.006134, allocations: 103.7 kB / 380.6 MB, free: 60 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004086/0.006542, allocations: 291 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.006547, allocations: 0 / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.00655, allocations: 3.984 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.006555, allocations: 4 kB / 380.9 MB, free: 15.77 MB / 362.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.0007693/0.007325, allocations: 0.5934 MB / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.007363, allocations: 11.98 kB / 381.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.007536, allocations: 60.73 kB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.007792, allocations: 216.8 kB / 381.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.007822, allocations: 16.88 kB / 381.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.007868, allocations: 24.38 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.008202, allocations: 225.2 kB / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.008215, allocations: 192 / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.008237, allocations: 8.375 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.008249, allocations: 11.94 kB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.008524, allocations: 138.9 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008713/0.009396, allocations: 0.6146 MB / 382.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/0.009775, allocations: 190.9 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.0099, allocations: 83.64 kB / 383.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.009925, allocations: 8 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.009951, allocations: 37.83 kB / 383.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.893e-06/0.009953, allocations: 0 / 383.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001743/0.0117, allocations: 1.006 MB / 384.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.01174, allocations: 55.41 kB / 384.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.0119, allocations: 234 kB / 384.4 MB, free: 12.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.01193, allocations: 33.7 kB / 384.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.401e-05/0.01202, allocations: 191.5 kB / 384.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.287e-05/0.01209, allocations: 123.1 kB / 384.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.893e-05/0.01218, allocations: 71.34 kB / 384.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.01232, allocations: 0.5001 MB / 385.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.01245, allocations: 75.89 kB / 385.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.01259, allocations: 126.7 kB / 385.5 MB, free: 10.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.01282, allocations: 172 kB / 385.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.01283, allocations: 0 / 385.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004502/0.01328, allocations: 340.7 kB / 386 MB, free: 10.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.01329, allocations: 4 kB / 386 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.0133, allocations: 0 / 386 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003079/0.01361, allocations: 155.5 kB / 386.2 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.01375, allocations: 55.91 kB / 386.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005841/0.01433, allocations: 0.9093 MB / 387.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.78e-05/0.01443, allocations: 27.97 kB / 387.2 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.01445, allocations: 8 kB / 387.2 MB, free: 9.156 MB / 362.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.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * 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.0001188/0.01457, allocations: 176.5 kB / 387.4 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.01462, allocations: 35.8 kB / 387.4 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.135e-05/0.01467, allocations: 42.58 kB / 387.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01467, allocations: 4 kB / 387.4 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.01468, allocations: 4.062 kB / 387.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01468, allocations: 4.031 kB / 387.4 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008928/0.01557, allocations: 0.7731 MB / 388.2 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.01558, allocations: 3.984 kB / 388.2 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.01571, allocations: 51.92 kB / 388.3 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.01591, allocations: 143.6 kB / 388.4 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.01593, allocations: 11.98 kB / 388.4 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004564/0.01639, allocations: 0.8897 MB / 389.3 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.01639, allocations: 7.938 kB / 389.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005803/0.01697, allocations: 0.5129 MB / 389.8 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.113e-05/0.01705, allocations: 51.81 kB / 389.9 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.01709, allocations: 11.94 kB / 389.9 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.01719, allocations: 23.97 kB / 389.9 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.785e-05/0.01728, allocations: 51.89 kB / 390 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.01729, allocations: 8 kB / 390 MB, free: 6.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.051e-05/0.01737, allocations: 171.4 kB / 390.1 MB, free: 6.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01737, allocations: 0 / 390.1 MB, free: 6.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000224/0.0176, allocations: 72 kB / 390.2 MB, free: 5.992 MB / 362.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.0008041/0.0184, allocations: 359 kB / 390.6 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.01882, allocations: 227.6 kB / 390.8 MB, free: 5.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.01883, allocations: 3.938 kB / 390.8 MB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.01899, allocations: 124.3 kB / 390.9 MB, free: 5.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.01927, allocations: 52.09 kB / 391 MB, free: 5.352 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.0205, allocations: 0.651 MB / 391.6 MB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.406e-05/0.02056, allocations: 85.06 kB / 391.7 MB, free: 4.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.802e-05/0.02062, allocations: 26.28 kB / 391.7 MB, free: 4.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.259e-05/0.02067, allocations: 24.5 kB / 391.7 MB, free: 4.516 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.02067, allocations: 0 / 391.7 MB, free: 4.516 MB / 362.7 MB Notification: Performance of Templates: time 0.006695/0.02737, allocations: 4.686 MB / 396.4 MB, free: 15.86 MB / 378.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.3391714869067073]