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.001297/0.001297, allocations: 110.4 kB / 17.78 MB, free: 5.312 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.001269/0.001269, allocations: 187.1 kB / 18.71 MB, free: 4.387 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.2173/0.2173, allocations: 44.19 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4296, 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.00504/0.4347, allocations: 2.247 MB / 0.5211 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.4365, allocations: 0.7332 MB / 0.5218 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.4368, allocations: 4.188 kB / 0.5218 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.4371, allocations: 33.22 kB / 0.5218 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.4373, allocations: 71.62 kB / 0.5219 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006931/0.438, allocations: 131.2 kB / 0.522 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007091/0.4388, allocations: 339.4 kB / 0.5223 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000383/0.4392, allocations: 84.81 kB / 0.5224 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/0.4395, allocations: 141 kB / 0.5226 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004077/0.4399, allocations: 153.8 kB / 0.5227 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.433e-05/0.44, allocations: 26.09 kB / 0.5227 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003043/0.4404, allocations: 82.61 kB / 0.5228 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.4406, allocations: 68.17 kB / 0.5229 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.4408, allocations: 133.7 kB / 0.523 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008276/0.4417, allocations: 337.8 kB / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.4417, allocations: 1.188 kB / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.4417, allocations: 0 / 0.5233 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.4417, allocations: 0 / 0.5233 GB, free: 0.8008 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.001377/0.4431, allocations: 0.5495 MB / 0.5239 GB, free: 348 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.021e-05/0.4432, allocations: 10.91 kB / 0.5239 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4433, allocations: 28.16 kB / 0.5239 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/0.4437, allocations: 252.5 kB / 0.5241 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.447e-05/0.4438, allocations: 18.97 kB / 0.5242 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.345e-05/0.4439, allocations: 26.28 kB / 0.5242 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008192/0.4447, allocations: 262.7 kB / 0.5244 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.4448, allocations: 5.797 kB / 0.5244 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.4448, allocations: 10.38 kB / 0.5244 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.4448, allocations: 4.844 kB / 0.5245 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006832/0.4455, allocations: 234.7 kB / 0.5247 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.4471, allocations: 0.7314 MB / 0.5254 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.4477, allocations: 242.2 kB / 0.5256 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.448, allocations: 139.3 kB / 0.5258 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.448, allocations: 2.75 kB / 0.5258 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/0.4482, allocations: 41.75 kB / 0.5258 GB, free: 15.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.222e-06/0.4482, allocations: 0 / 0.5258 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003715/0.4519, allocations: 1.462 MB / 0.5272 GB, free: 14.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.4519, allocations: 59.66 kB / 0.5273 GB, free: 14.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.4522, allocations: 197.6 kB / 0.5275 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.4523, allocations: 32.7 kB / 0.5275 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.4525, allocations: 142.2 kB / 0.5276 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/0.4526, allocations: 107.3 kB / 0.5277 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.4527, allocations: 66.72 kB / 0.5278 GB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4529, allocations: 336.1 kB / 0.5281 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.4531, allocations: 121.2 kB / 0.5282 GB, free: 13.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.4534, allocations: 172 kB / 0.5284 GB, free: 13.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004624/0.4539, allocations: 257 kB / 0.5286 GB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.4539, allocations: 0 / 0.5286 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008566/0.4548, allocations: 437.2 kB / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.4548, allocations: 5.875 kB / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.4548, allocations: 0 / 0.5291 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005904/0.4554, allocations: 236.6 kB / 0.5293 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.4558, allocations: 52.47 kB / 0.5293 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009111/0.4567, allocations: 0.7562 MB / 0.5301 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.457, allocations: 38.14 kB / 0.5301 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.4571, allocations: 9.531 kB / 0.5301 GB, free: 11.99 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.0002219/0.4573, allocations: 147.5 kB / 0.5303 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.4574, allocations: 23.12 kB / 0.5303 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.592e-05/0.4575, allocations: 41.72 kB / 0.5303 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.4575, allocations: 4.875 kB / 0.5303 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.4575, allocations: 64 / 0.5303 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.4575, allocations: 7.984 kB / 0.5303 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.4594, allocations: 0.9438 MB / 0.5313 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.4595, allocations: 0.9375 kB / 0.5313 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.4597, allocations: 49.69 kB / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004665/0.4602, allocations: 214.4 kB / 0.5315 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.4602, allocations: 10.42 kB / 0.5315 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007197/0.461, allocations: 0.7179 MB / 0.5322 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.461, allocations: 1.375 kB / 0.5322 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.4622, allocations: 0.6356 MB / 0.5329 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.4624, allocations: 126.5 kB / 0.533 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.705e-05/0.4624, allocations: 16.19 kB / 0.533 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.4627, allocations: 37.83 kB / 0.533 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.4628, allocations: 46.2 kB / 0.5331 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/0.4629, allocations: 15.11 kB / 0.5331 GB, free: 9.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.463, allocations: 145.5 kB / 0.5332 GB, free: 9.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.463, allocations: 0 / 0.5332 GB, free: 9.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004275/0.4635, allocations: 73.19 kB / 0.5333 GB, free: 9.629 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.000222/0.4637, allocations: 131.4 kB / 0.5334 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007946/0.4645, allocations: 329.3 kB / 0.5337 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4645, allocations: 0 / 0.5337 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.4649, allocations: 160.6 kB / 0.5339 GB, free: 9.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.4653, allocations: 39.83 kB / 0.5339 GB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.4673, allocations: 0.7375 MB / 0.5346 GB, free: 8.801 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.4678, allocations: 0.7508 MB / 0.5354 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.182e-05/0.4679, allocations: 27.02 kB / 0.5354 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.685e-05/0.468, allocations: 23.75 kB / 0.5354 GB, free: 8.047 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.468, allocations: 0 / 0.5354 GB, free: 8.047 MB / 398.1 MB Notification: Performance of Templates: time 0.01161/0.4796, allocations: 5.318 MB / 0.5406 GB, free: 5.258 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