Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 104.5 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3506/0.3506, allocations: 44.13 MB / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 51.92 kB / 457.7 MB, free: 2.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.4191, allocations: 60.8 MB / 0.5064 GB, free: 38.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005202/0.4244, allocations: 3.935 MB / 0.5102 GB, free: 35.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.4273, allocations: 1.233 MB / 0.5114 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005657/0.4279, allocations: 15.78 kB / 0.5114 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003934/0.4283, allocations: 81.39 kB / 0.5115 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005023/0.4289, allocations: 182.2 kB / 0.5117 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008416/0.4298, allocations: 286.7 kB / 0.512 GB, free: 34.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009223/0.4307, allocations: 0.9949 MB / 0.5129 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.431, allocations: 157.3 kB / 0.5131 GB, free: 33.69 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004477/0.4315, allocations: 407 kB / 0.5135 GB, free: 33.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004332/0.4319, allocations: 473.2 kB / 0.5139 GB, free: 33.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.432, allocations: 44.09 kB / 0.514 GB, free: 33.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002114/0.4322, allocations: 89.78 kB / 0.5141 GB, free: 33.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.4324, allocations: 168.8 kB / 0.5142 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.4327, allocations: 364 kB / 0.5146 GB, free: 33.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007154/0.4335, allocations: 0.8879 MB / 0.5154 GB, free: 32.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4335, allocations: 0 / 0.5154 GB, free: 32.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4335, allocations: 0 / 0.5154 GB, free: 32.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.4335, allocations: 0 / 0.5154 GB, free: 32.68 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002281/0.4358, allocations: 1.082 MB / 0.5165 GB, free: 31.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.4359, allocations: 9.094 kB / 0.5165 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.436, allocations: 79.06 kB / 0.5166 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005383/0.4366, allocations: 442.4 kB / 0.517 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.4366, allocations: 47.75 kB / 0.517 GB, free: 31.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.4368, allocations: 68.75 kB / 0.5171 GB, free: 31.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.4382, allocations: 0.819 MB / 0.5179 GB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.94e-05/0.4382, allocations: 10.14 kB / 0.5179 GB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-05/0.4383, allocations: 25.94 kB / 0.5179 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.4384, allocations: 14.44 kB / 0.518 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.4399, allocations: 0.7681 MB / 0.5187 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003806/0.4437, allocations: 2.558 MB / 0.5212 GB, free: 29.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.445, allocations: 0.6376 MB / 0.5218 GB, free: 29.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.4456, allocations: 374.8 kB / 0.5222 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.839e-05/0.4457, allocations: 16.77 kB / 0.5222 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.4458, allocations: 45.47 kB / 0.5222 GB, free: 28.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.607e-06/0.4458, allocations: 0 / 0.5222 GB, free: 28.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.006795/0.4526, allocations: 3.535 MB / 0.5257 GB, free: 26.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.4527, allocations: 140.6 kB / 0.5258 GB, free: 26.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000443/0.4531, allocations: 425 kB / 0.5262 GB, free: 26.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/0.4532, allocations: 52.23 kB / 0.5263 GB, free: 26.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.4533, allocations: 287.4 kB / 0.5266 GB, free: 26.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.4535, allocations: 266.4 kB / 0.5268 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/0.4538, allocations: 163.3 kB / 0.527 GB, free: 25.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.4539, allocations: 377.3 kB / 0.5273 GB, free: 25.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006858/0.4546, allocations: 390.3 kB / 0.5277 GB, free: 25.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007425/0.4553, allocations: 0.5425 MB / 0.5282 GB, free: 24.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.4564, allocations: 0.7433 MB / 0.529 GB, free: 24.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.4565, allocations: 4 kB / 0.529 GB, free: 24.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002432/0.4589, allocations: 1.27 MB / 0.5302 GB, free: 24.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.4589, allocations: 14.84 kB / 0.5302 GB, free: 24.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.459, allocations: 11.16 kB / 0.5302 GB, free: 24.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.4602, allocations: 0.7642 MB / 0.531 GB, free: 23.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.4607, allocations: 147.2 kB / 0.5311 GB, free: 23.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.4625, allocations: 2.692 MB / 0.5337 GB, free: 21.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009681/0.4634, allocations: 144.2 kB / 0.5339 GB, free: 21.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.668e-05/0.4635, allocations: 40.91 kB / 0.5339 GB, free: 21.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003676/0.4639, allocations: 209.5 kB / 0.5341 GB, free: 21.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.4641, allocations: 61.91 kB / 0.5342 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.4643, allocations: 85.98 kB / 0.5343 GB, free: 21.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.525e-06/0.4643, allocations: 10.56 kB / 0.5343 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/0.4643, allocations: 7.109 kB / 0.5343 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4643, allocations: 3.328 kB / 0.5343 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003717/0.4681, allocations: 2.174 MB / 0.5364 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4681, allocations: 3 kB / 0.5364 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00051/0.4686, allocations: 110.7 kB / 0.5365 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.4698, allocations: 0.7214 MB / 0.5372 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.4698, allocations: 30.64 kB / 0.5372 GB, free: 19.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.4715, allocations: 2.653 MB / 0.5398 GB, free: 17.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4715, allocations: 3.031 kB / 0.5398 GB, free: 17.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02659/0.4981, allocations: 14.92 MB / 0.5544 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005822/0.4988, allocations: 213.3 kB / 0.5546 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.499, allocations: 27.42 kB / 0.5546 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.5003, allocations: 120.6 kB / 0.5548 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007664/0.5011, allocations: 146.3 kB / 0.5549 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/0.5013, allocations: 29.33 kB / 0.5549 GB, free: 7.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000706/0.5021, allocations: 299.2 kB / 0.5552 GB, free: 7.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5021, allocations: 0 / 0.5552 GB, free: 7.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002506/0.5046, allocations: 307.3 kB / 0.5555 GB, free: 7.285 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005657/0.5052, allocations: 174.7 kB / 0.5557 GB, free: 7.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.508, allocations: 0.9493 MB / 0.5566 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.508, allocations: 1.906 kB / 0.5566 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.5095, allocations: 0.5084 MB / 0.5571 GB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.5106, allocations: 101.5 kB / 0.5572 GB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007477/0.5181, allocations: 3.287 MB / 0.5604 GB, free: 4.414 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007851/0.5189, allocations: 0.9236 MB / 0.5613 GB, free: 3.707 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005442/0.5195, allocations: 76.09 kB / 0.5614 GB, free: 3.684 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.5198, allocations: 57.12 kB / 0.5614 GB, free: 3.668 MB / 378.7 MB Notification: Performance of SimCode: time 2.996e-06/0.5198, allocations: 0 / 0.5614 GB, free: 3.668 MB / 378.7 MB Notification: Performance of Templates: time 0.03466/0.5544, allocations: 19.15 MB / 0.5801 GB, free: 2.75 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches