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/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: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001284/0.001284, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2428/0.2428, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4145/0.4164, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004352/0.4208, allocations: 3.915 MB / 0.5222 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.4235, allocations: 1.225 MB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005529/0.4241, allocations: 12.59 kB / 0.5234 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004332/0.4245, allocations: 115.2 kB / 0.5236 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006811/0.4252, allocations: 207.2 kB / 0.5238 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.4264, allocations: 345.1 kB / 0.5241 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.428, allocations: 1.032 MB / 0.5251 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003471/0.4284, allocations: 183.2 kB / 0.5253 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008366/0.4292, allocations: 442.3 kB / 0.5257 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007751/0.43, allocations: 488.9 kB / 0.5261 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.4302, allocations: 77.44 kB / 0.5262 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003144/0.4305, allocations: 133.3 kB / 0.5264 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.4307, allocations: 203.6 kB / 0.5265 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004963/0.4313, allocations: 398 kB / 0.5269 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.4325, allocations: 0.9553 MB / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4326, allocations: 0 / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4326, allocations: 0 / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.4326, allocations: 0 / 0.5279 GB, free: 13.18 MB / 398.1 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.002576/0.4352, allocations: 1.103 MB / 0.5289 GB, free: 12.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4352, allocations: 9.344 kB / 0.5289 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.4354, allocations: 101.5 kB / 0.529 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.4356, allocations: 84.45 kB / 0.5291 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007402/0.4363, allocations: 443.5 kB / 0.5295 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-05/0.4364, allocations: 50.84 kB / 0.5296 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.4366, allocations: 67.77 kB / 0.5297 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.4382, allocations: 0.8244 MB / 0.5305 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.4382, allocations: 7.297 kB / 0.5305 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.4383, allocations: 25.78 kB / 0.5305 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.4383, allocations: 15.28 kB / 0.5305 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.4401, allocations: 0.764 MB / 0.5313 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.4447, allocations: 2.556 MB / 0.5338 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.4462, allocations: 0.6383 MB / 0.5344 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007875/0.447, allocations: 377 kB / 0.5347 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.038e-05/0.4471, allocations: 15.45 kB / 0.5347 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.4471, allocations: 38.78 kB / 0.5348 GB, free: 8.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.735e-06/0.4471, allocations: 3.938 kB / 0.5348 GB, free: 8.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.008491/0.4556, allocations: 3.562 MB / 0.5383 GB, free: 5.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.4558, allocations: 140.8 kB / 0.5384 GB, free: 5.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005896/0.4564, allocations: 429.3 kB / 0.5388 GB, free: 5.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.4565, allocations: 53.91 kB / 0.5389 GB, free: 5.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.4568, allocations: 290.1 kB / 0.5391 GB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/0.457, allocations: 274.3 kB / 0.5394 GB, free: 4.617 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.4574, allocations: 176.2 kB / 0.5396 GB, free: 4.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.4576, allocations: 364.9 kB / 0.5399 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000857/0.4585, allocations: 388.3 kB / 0.5403 GB, free: 3.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.4595, allocations: 0.5491 MB / 0.5408 GB, free: 3.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.461, allocations: 0.7356 MB / 0.5415 GB, free: 3.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.461, allocations: 5.125 kB / 0.5415 GB, free: 3.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002964/0.464, allocations: 1.286 MB / 0.5428 GB, free: 2.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.464, allocations: 15.92 kB / 0.5428 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.4641, allocations: 4 kB / 0.5428 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.4656, allocations: 0.7607 MB / 0.5436 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006343/0.4663, allocations: 151.7 kB / 0.5437 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002813/0.4691, allocations: 2.686 MB / 0.5463 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.4702, allocations: 147.8 kB / 0.5465 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/0.4703, allocations: 39.92 kB / 0.5465 GB, free: 14.48 MB / 414.1 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.0004289/0.4707, allocations: 220.2 kB / 0.5467 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.4709, allocations: 63.58 kB / 0.5468 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.4711, allocations: 83.92 kB / 0.5469 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4711, allocations: 8 kB / 0.5469 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.4712, allocations: 0 / 0.5469 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.4712, allocations: 7.984 kB / 0.5469 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.4755, allocations: 2.168 MB / 0.549 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.4755, allocations: 4 kB / 0.549 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/0.4761, allocations: 107.9 kB / 0.5491 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.4775, allocations: 0.7218 MB / 0.5498 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-05/0.4776, allocations: 35.95 kB / 0.5498 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/0.4803, allocations: 2.647 MB / 0.5524 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4803, allocations: 0 / 0.5524 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/0.484, allocations: 1.78 MB / 0.5542 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/0.4845, allocations: 228.6 kB / 0.5544 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.4847, allocations: 27.94 kB / 0.5544 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.4858, allocations: 119.8 kB / 0.5545 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.4862, allocations: 147.8 kB / 0.5547 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.122e-05/0.4863, allocations: 31.97 kB / 0.5547 GB, free: 5.848 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003768/0.4867, allocations: 291.1 kB / 0.555 GB, free: 5.562 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4867, allocations: 0 / 0.555 GB, free: 5.562 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009219/0.4876, allocations: 196 kB / 0.5552 GB, free: 5.371 MB / 414.1 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.004123/0.4917, allocations: 2.377 MB / 0.5575 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.4941, allocations: 0.9488 MB / 0.5584 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4942, allocations: 0 / 0.5584 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.4955, allocations: 0.5151 MB / 0.5589 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.4966, allocations: 111.2 kB / 0.559 GB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.5115, allocations: 7.427 MB / 0.5663 GB, free: 9.723 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.5122, allocations: 0.9066 MB / 0.5672 GB, free: 8.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.5125, allocations: 64.83 kB / 0.5672 GB, free: 8.727 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.5129, allocations: 215.3 kB / 0.5674 GB, free: 8.516 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5129, allocations: 0 / 0.5674 GB, free: 8.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05969/0.5726, allocations: 21.19 MB / 0.5881 GB, free: 3.496 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.67, allocations: 11.75 kB / 0.5881 GB, free: 3.488 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches