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.00154/0.00154, 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.001704/0.001704, 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.459/1.459, 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.2187/0.2187, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3668, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004928/0.3718, allocations: 3.92 MB / 0.5222 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.3749, allocations: 1.236 MB / 0.5234 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006357/0.3755, allocations: 13.16 kB / 0.5234 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003926/0.376, allocations: 111.3 kB / 0.5236 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005965/0.3766, allocations: 216.3 kB / 0.5238 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.3777, allocations: 338.3 kB / 0.5241 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.3791, allocations: 1.028 MB / 0.5251 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.3795, allocations: 185.8 kB / 0.5253 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008714/0.3803, allocations: 453.1 kB / 0.5257 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007896/0.3811, allocations: 491.1 kB / 0.5262 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.3813, allocations: 77.59 kB / 0.5262 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.3816, allocations: 125.4 kB / 0.5264 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00025/0.3819, allocations: 204.5 kB / 0.5266 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005155/0.3824, allocations: 400.8 kB / 0.5269 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.3836, allocations: 0.9505 MB / 0.5279 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3836, allocations: 0 / 0.5279 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3837, allocations: 0 / 0.5279 GB, free: 13.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.3837, allocations: 4 kB / 0.5279 GB, free: 13.16 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.002369/0.3861, allocations: 1.098 MB / 0.5289 GB, free: 12.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3861, allocations: 9.562 kB / 0.529 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.3863, allocations: 102.1 kB / 0.529 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.3864, allocations: 87.33 kB / 0.5291 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007327/0.3872, allocations: 447.6 kB / 0.5296 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.072e-05/0.3872, allocations: 51.47 kB / 0.5296 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3874, allocations: 64.11 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.389, allocations: 0.8197 MB / 0.5305 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.389, allocations: 7.547 kB / 0.5305 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.3891, allocations: 25.84 kB / 0.5305 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.3891, allocations: 14.75 kB / 0.5305 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.3908, allocations: 0.7716 MB / 0.5313 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0057/0.3965, allocations: 2.548 MB / 0.5338 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.3981, allocations: 0.628 MB / 0.5344 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007923/0.3989, allocations: 381 kB / 0.5347 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.185e-05/0.399, allocations: 11.58 kB / 0.5347 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.399, allocations: 51.97 kB / 0.5348 GB, free: 8.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.926e-06/0.399, allocations: 0 / 0.5348 GB, free: 8.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.008241/0.4073, allocations: 3.562 MB / 0.5383 GB, free: 5.566 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/0.4074, allocations: 144.4 kB / 0.5384 GB, free: 5.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/0.408, allocations: 429.5 kB / 0.5388 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.4081, allocations: 50.64 kB / 0.5389 GB, free: 5.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.4083, allocations: 290.4 kB / 0.5391 GB, free: 4.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.4086, allocations: 280.7 kB / 0.5394 GB, free: 4.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.4089, allocations: 165.3 kB / 0.5396 GB, free: 4.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.409, allocations: 367.3 kB / 0.5399 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/0.4099, allocations: 397.2 kB / 0.5403 GB, free: 3.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009496/0.4109, allocations: 0.5496 MB / 0.5408 GB, free: 3.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.4123, allocations: 0.7335 MB / 0.5416 GB, free: 3.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4123, allocations: 1.344 kB / 0.5416 GB, free: 3.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003194/0.4155, allocations: 1.281 MB / 0.5428 GB, free: 2.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.4156, allocations: 11.94 kB / 0.5428 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.4156, allocations: 8.281 kB / 0.5428 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/0.4171, allocations: 0.7606 MB / 0.5436 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.4177, allocations: 147.8 kB / 0.5437 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002531/0.4203, allocations: 2.702 MB / 0.5463 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.4214, allocations: 135.8 kB / 0.5465 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.847e-05/0.4215, allocations: 43.92 kB / 0.5465 GB, free: 14.44 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.0004881/0.422, allocations: 212.2 kB / 0.5467 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000249/0.4223, allocations: 67.58 kB / 0.5468 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.4225, allocations: 83.91 kB / 0.5469 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4225, allocations: 8 kB / 0.5469 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.4225, allocations: 8 kB / 0.5469 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4225, allocations: 7.969 kB / 0.5469 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004514/0.427, allocations: 2.161 MB / 0.549 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.4271, allocations: 4 kB / 0.549 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.4277, allocations: 111.9 kB / 0.5491 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.4289, allocations: 0.7215 MB / 0.5498 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.429, allocations: 35.95 kB / 0.5498 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/0.4315, allocations: 2.647 MB / 0.5524 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4316, allocations: 4.031 kB / 0.5524 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.435, allocations: 1.778 MB / 0.5542 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004359/0.4355, allocations: 220.6 kB / 0.5544 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.4356, allocations: 31.94 kB / 0.5544 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00089/0.4365, allocations: 123.8 kB / 0.5545 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.4369, allocations: 143.8 kB / 0.5547 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.897e-05/0.437, allocations: 35.89 kB / 0.5547 GB, free: 5.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003344/0.4373, allocations: 299.1 kB / 0.555 GB, free: 5.516 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4373, allocations: 3.938 kB / 0.555 GB, free: 5.512 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009012/0.4382, allocations: 196 kB / 0.5552 GB, free: 5.32 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.003824/0.442, allocations: 2.365 MB / 0.5575 GB, free: 2.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002304/0.4444, allocations: 0.9457 MB / 0.5584 GB, free: 1.973 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4444, allocations: 3.938 kB / 0.5584 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.4457, allocations: 0.5001 MB / 0.5589 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.4468, allocations: 109.8 kB / 0.559 GB, free: 1.371 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.461, allocations: 7.441 MB / 0.5663 GB, free: 9.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007391/0.4618, allocations: 0.9066 MB / 0.5672 GB, free: 8.758 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000396/0.4622, allocations: 68.81 kB / 0.5672 GB, free: 8.691 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.4625, allocations: 215.4 kB / 0.5674 GB, free: 8.48 MB / 430.1 MB Notification: Performance of SimCode: time 1.763e-06/0.4625, allocations: 0 / 0.5674 GB, free: 8.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05484/0.5174, allocations: 21.19 MB / 0.5881 GB, free: 3.461 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.94, allocations: 0 / 0.5881 GB, free: 3.461 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