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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 112.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 180.8 kB / 18.71 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2536/0.2536, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.09 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4325, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003453/0.436, allocations: 2.241 MB / 0.5211 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.4372, allocations: 0.7248 MB / 0.5218 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.4374, allocations: 7.375 kB / 0.5218 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.4376, allocations: 37.33 kB / 0.5218 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.4377, allocations: 72.66 kB / 0.5219 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.4382, allocations: 131 kB / 0.522 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.4385, allocations: 343.7 kB / 0.5223 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.4387, allocations: 84.09 kB / 0.5224 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.4389, allocations: 147.2 kB / 0.5226 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.4392, allocations: 153.8 kB / 0.5227 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.16e-05/0.4392, allocations: 25.28 kB / 0.5227 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.4394, allocations: 79.39 kB / 0.5228 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.924e-05/0.4395, allocations: 63.73 kB / 0.5229 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.4397, allocations: 130 kB / 0.523 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.4401, allocations: 345.7 kB / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4401, allocations: 0 / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4401, allocations: 0.8438 kB / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.4402, allocations: 4 kB / 0.5233 GB, free: 0.7969 MB / 382.1 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.0009266/0.4411, allocations: 0.5454 MB / 0.5239 GB, free: 348 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.4411, allocations: 9.438 kB / 0.5239 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.459e-05/0.4412, allocations: 30.47 kB / 0.5239 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.4416, allocations: 251.3 kB / 0.5241 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.4416, allocations: 18.48 kB / 0.5242 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.4417, allocations: 27.69 kB / 0.5242 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.4423, allocations: 270 kB / 0.5244 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4423, allocations: 1.531 kB / 0.5244 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.4423, allocations: 10.25 kB / 0.5245 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.4424, allocations: 5.719 kB / 0.5245 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005121/0.4429, allocations: 234.5 kB / 0.5247 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.4443, allocations: 0.7169 MB / 0.5254 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/0.4449, allocations: 248.8 kB / 0.5256 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.4452, allocations: 145.6 kB / 0.5258 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.4452, allocations: 6.688 kB / 0.5258 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.4453, allocations: 37.44 kB / 0.5258 GB, free: 15.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.473e-06/0.4453, allocations: 0 / 0.5258 GB, free: 15.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003282/0.4486, allocations: 1.456 MB / 0.5272 GB, free: 14.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4486, allocations: 55.53 kB / 0.5273 GB, free: 14.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.4489, allocations: 198.2 kB / 0.5275 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.4489, allocations: 36.45 kB / 0.5275 GB, free: 13.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.874e-05/0.449, allocations: 138.2 kB / 0.5276 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.4491, allocations: 114.8 kB / 0.5277 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.4493, allocations: 66.92 kB / 0.5278 GB, free: 13.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.4494, allocations: 335.6 kB / 0.5281 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.4497, allocations: 122 kB / 0.5282 GB, free: 13.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.45, allocations: 167 kB / 0.5284 GB, free: 13.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.4504, allocations: 261.3 kB / 0.5287 GB, free: 12.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4504, allocations: 0 / 0.5287 GB, free: 12.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008878/0.4513, allocations: 429.5 kB / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.4514, allocations: 8.844 kB / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4514, allocations: 1.062 kB / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005466/0.4519, allocations: 245.4 kB / 0.5293 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.4522, allocations: 47.56 kB / 0.5294 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008056/0.453, allocations: 0.756 MB / 0.5301 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.4533, allocations: 38.95 kB / 0.5301 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.4533, allocations: 12.12 kB / 0.5301 GB, free: 11.98 MB / 398.1 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001938/0.4535, allocations: 152.5 kB / 0.5303 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.56e-05/0.4536, allocations: 21.88 kB / 0.5303 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.167e-05/0.4537, allocations: 39.16 kB / 0.5303 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4537, allocations: 3.5 kB / 0.5303 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4537, allocations: 0 / 0.5303 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4537, allocations: 5.078 kB / 0.5303 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.4553, allocations: 0.9479 MB / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4553, allocations: 0 / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.4555, allocations: 49.81 kB / 0.5313 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.456, allocations: 214 kB / 0.5315 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.456, allocations: 14.95 kB / 0.5315 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006338/0.4566, allocations: 0.7147 MB / 0.5322 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4566, allocations: 0 / 0.5322 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.4579, allocations: 0.6371 MB / 0.5329 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.458, allocations: 125.8 kB / 0.533 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.4581, allocations: 15.47 kB / 0.533 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.4583, allocations: 33.98 kB / 0.533 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.4585, allocations: 51.45 kB / 0.5331 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.4585, allocations: 14.64 kB / 0.5331 GB, free: 9.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.4587, allocations: 145.5 kB / 0.5332 GB, free: 9.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4587, allocations: 0 / 0.5332 GB, free: 9.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004315/0.4591, allocations: 72.94 kB / 0.5333 GB, free: 9.617 MB / 398.1 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.0002555/0.4594, allocations: 127.5 kB / 0.5334 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007602/0.4601, allocations: 325.8 kB / 0.5337 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4602, allocations: 4.125 kB / 0.5337 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000426/0.4606, allocations: 160.8 kB / 0.5339 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.461, allocations: 40.11 kB / 0.5339 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.463, allocations: 0.7481 MB / 0.5347 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.4634, allocations: 0.7472 MB / 0.5354 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.4635, allocations: 26.84 kB / 0.5354 GB, free: 8.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.064e-05/0.4636, allocations: 20.53 kB / 0.5354 GB, free: 8.035 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4636, allocations: 0 / 0.5354 GB, free: 8.035 MB / 398.1 MB Notification: Performance of Templates: time 0.01089/0.4745, allocations: 5.14 MB / 0.5405 GB, free: 5.379 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches