Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 174.1 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000974/0.0009743, allocations: 89.55 kB / 295 MB, free: 9.512 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3548/0.3548, allocations: 44.32 MB / 390.5 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004811/0.0004811, allocations: 8 kB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3828, allocations: 61.9 MB / 0.5127 GB, free: 38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002099/0.385, allocations: 1.883 MB / 0.5146 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3861, allocations: 0.7752 MB / 0.5153 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.3863, allocations: 2.875 kB / 0.5153 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.3865, allocations: 25.8 kB / 0.5154 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.3866, allocations: 64.41 kB / 0.5154 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.387, allocations: 109.4 kB / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.3873, allocations: 310.9 kB / 0.5158 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.3874, allocations: 80.36 kB / 0.5159 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.3876, allocations: 124 kB / 0.516 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.3878, allocations: 143 kB / 0.5162 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.546e-05/0.3878, allocations: 14.78 kB / 0.5162 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.388, allocations: 59.62 kB / 0.5162 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.34e-05/0.3881, allocations: 51.2 kB / 0.5163 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3882, allocations: 144.4 kB / 0.5164 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.3885, allocations: 314.5 kB / 0.5167 GB, free: 35.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3885, allocations: 2.781 kB / 0.5167 GB, free: 35.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3885, allocations: 0 / 0.5167 GB, free: 35.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3885, allocations: 0 / 0.5167 GB, free: 35.43 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007514/0.3893, allocations: 0.5202 MB / 0.5172 GB, free: 34.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3893, allocations: 8.344 kB / 0.5172 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.3894, allocations: 26.41 kB / 0.5173 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.3896, allocations: 248.1 kB / 0.5175 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.3897, allocations: 22.14 kB / 0.5175 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.3897, allocations: 22.38 kB / 0.5175 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.3902, allocations: 266.7 kB / 0.5178 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3903, allocations: 1.656 kB / 0.5178 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.3903, allocations: 5.969 kB / 0.5178 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3903, allocations: 5.219 kB / 0.5178 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004831/0.3908, allocations: 244.6 kB / 0.518 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.392, allocations: 0.7467 MB / 0.5188 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004863/0.3925, allocations: 251.6 kB / 0.519 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.3927, allocations: 138.7 kB / 0.5191 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.3928, allocations: 7.297 kB / 0.5191 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.3928, allocations: 32.16 kB / 0.5192 GB, free: 33.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.292e-06/0.3928, allocations: 0 / 0.5192 GB, free: 33.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002644/0.3954, allocations: 1.508 MB / 0.5206 GB, free: 32.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.3955, allocations: 54.31 kB / 0.5207 GB, free: 32.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.3956, allocations: 200.3 kB / 0.5209 GB, free: 32.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3957, allocations: 37.39 kB / 0.5209 GB, free: 32.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.572e-05/0.3957, allocations: 135.9 kB / 0.5211 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.649e-05/0.3958, allocations: 107.2 kB / 0.5212 GB, free: 32.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.3958, allocations: 11.16 kB / 0.5212 GB, free: 32.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.284e-05/0.3959, allocations: 330.7 kB / 0.5215 GB, free: 32.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.3961, allocations: 126.1 kB / 0.5216 GB, free: 32.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.3964, allocations: 170.2 kB / 0.5218 GB, free: 32.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.3968, allocations: 257.1 kB / 0.522 GB, free: 31.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3968, allocations: 2.844 kB / 0.522 GB, free: 31.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000743/0.3975, allocations: 456.2 kB / 0.5224 GB, free: 31.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3976, allocations: 10 kB / 0.5225 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3976, allocations: 0 / 0.5225 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004729/0.398, allocations: 239.8 kB / 0.5227 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.3983, allocations: 56.7 kB / 0.5227 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005822/0.3989, allocations: 0.7471 MB / 0.5235 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.3991, allocations: 51.02 kB / 0.5235 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.3992, allocations: 8.75 kB / 0.5235 GB, free: 31.03 MB / 378.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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.3993, allocations: 154.8 kB / 0.5237 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.3993, allocations: 31.31 kB / 0.5237 GB, free: 30.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.046e-05/0.3994, allocations: 40.73 kB / 0.5237 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3994, allocations: 2.938 kB / 0.5237 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3994, allocations: 0 / 0.5237 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3994, allocations: 2.906 kB / 0.5237 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.4007, allocations: 0.9435 MB / 0.5247 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4008, allocations: 3.938 kB / 0.5247 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.401, allocations: 50.98 kB / 0.5247 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000332/0.4013, allocations: 222.1 kB / 0.5249 GB, free: 30.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.4014, allocations: 14.09 kB / 0.5249 GB, free: 30.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004613/0.4018, allocations: 0.7107 MB / 0.5256 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4018, allocations: 0 / 0.5256 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009481/0.4028, allocations: 0.647 MB / 0.5263 GB, free: 29.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.4029, allocations: 129.7 kB / 0.5264 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.403, allocations: 10.84 kB / 0.5264 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.4032, allocations: 49.2 kB / 0.5265 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.4034, allocations: 47.97 kB / 0.5265 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.4034, allocations: 12.81 kB / 0.5265 GB, free: 29.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001127/0.4035, allocations: 144 kB / 0.5266 GB, free: 29 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4035, allocations: 4 kB / 0.5267 GB, free: 28.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003487/0.4039, allocations: 81.62 kB / 0.5267 GB, free: 28.98 MB / 378.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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/0.404, allocations: 132.3 kB / 0.5269 GB, free: 28.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006548/0.4047, allocations: 312 kB / 0.5272 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4047, allocations: 0 / 0.5272 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.405, allocations: 171.4 kB / 0.5273 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.4054, allocations: 39.44 kB / 0.5274 GB, free: 28.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.407, allocations: 0.957 MB / 0.5283 GB, free: 28.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.4072, allocations: 0.7479 MB / 0.529 GB, free: 27.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.395e-05/0.4073, allocations: 20.52 kB / 0.529 GB, free: 27.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.4073, allocations: 20.09 kB / 0.5291 GB, free: 27.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4073, allocations: 4 kB / 0.5291 GB, free: 27.48 MB / 378.7 MB Notification: Performance of Templates: time 0.007336/0.4147, allocations: 4.753 MB / 0.5337 GB, free: 27.14 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches