Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2516/0.2516, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 67.89 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.334, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006553/0.3406, allocations: 4.112 MB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003634/0.3443, allocations: 1.481 MB / 0.536 GB, free: 8.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008216/0.3452, allocations: 16.34 kB / 0.536 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007092/0.3459, allocations: 131 kB / 0.5361 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.3472, allocations: 291 kB / 0.5364 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.3482, allocations: 352.3 kB / 0.5367 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001799/0.3501, allocations: 1.089 MB / 0.5378 GB, free: 7.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.3506, allocations: 188.2 kB / 0.538 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.3519, allocations: 483.4 kB / 0.5384 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.3532, allocations: 0.5065 MB / 0.5389 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004378/0.3536, allocations: 86.84 kB / 0.539 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000743/0.3544, allocations: 142.6 kB / 0.5391 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004447/0.3549, allocations: 236.8 kB / 0.5394 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008953/0.3558, allocations: 424 kB / 0.5398 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001984/0.3578, allocations: 1.024 MB / 0.5408 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3578, allocations: 0 / 0.5408 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3578, allocations: 1.125 kB / 0.5408 GB, free: 5.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.612e-05/0.3579, allocations: 0 / 0.5408 GB, free: 5.652 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.003716/0.3616, allocations: 1.181 MB / 0.5419 GB, free: 4.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.3617, allocations: 14.3 kB / 0.5419 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002328/0.3619, allocations: 106.7 kB / 0.542 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007153/0.3626, allocations: 124.7 kB / 0.5422 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3638, allocations: 484.5 kB / 0.5426 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.3639, allocations: 52.38 kB / 0.5427 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.3641, allocations: 73.94 kB / 0.5427 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.3661, allocations: 0.8137 MB / 0.5435 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.926e-05/0.3662, allocations: 7.438 kB / 0.5435 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.884e-05/0.3663, allocations: 29.86 kB / 0.5436 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.3663, allocations: 19.38 kB / 0.5436 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.3682, allocations: 0.7375 MB / 0.5443 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005701/0.374, allocations: 2.577 MB / 0.5468 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.3756, allocations: 0.6698 MB / 0.5475 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009222/0.3766, allocations: 378.2 kB / 0.5478 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.494e-05/0.3767, allocations: 11.98 kB / 0.5478 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.3768, allocations: 50.56 kB / 0.5479 GB, free: 15.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.046e-06/0.3768, allocations: 0 / 0.5479 GB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.009381/0.3862, allocations: 3.562 MB / 0.5514 GB, free: 11.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/0.3863, allocations: 140.5 kB / 0.5515 GB, free: 11.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006932/0.387, allocations: 474 kB / 0.552 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.3872, allocations: 53.69 kB / 0.552 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.3874, allocations: 285.1 kB / 0.5523 GB, free: 10.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003523/0.3878, allocations: 305.6 kB / 0.5526 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004213/0.3882, allocations: 174.5 kB / 0.5527 GB, free: 10.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3884, allocations: 378.8 kB / 0.5531 GB, free: 10 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009134/0.3893, allocations: 357.8 kB / 0.5534 GB, free: 9.648 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.3904, allocations: 0.5176 MB / 0.554 GB, free: 9.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.3919, allocations: 0.693 MB / 0.5546 GB, free: 8.328 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3919, allocations: 0 / 0.5546 GB, free: 8.328 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003151/0.3951, allocations: 1.207 MB / 0.5558 GB, free: 7.102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.3951, allocations: 8 kB / 0.5558 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.3952, allocations: 8.078 kB / 0.5558 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.3969, allocations: 0.5851 MB / 0.5564 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/0.3975, allocations: 151.7 kB / 0.5565 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004328/0.4019, allocations: 3.85 MB / 0.5603 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.4032, allocations: 147.8 kB / 0.5604 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.4034, allocations: 35.98 kB / 0.5605 GB, free: 2.094 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,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 (88): * Single equations (assignments): 84 * 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,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006539/0.4041, allocations: 220.2 kB / 0.5607 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.4045, allocations: 75.53 kB / 0.5608 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.4047, allocations: 100.8 kB / 0.5609 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.4048, allocations: 11.94 kB / 0.5609 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.4048, allocations: 0 / 0.5609 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.4048, allocations: 3.984 kB / 0.5609 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004955/0.4097, allocations: 2.158 MB / 0.563 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.4098, allocations: 0 / 0.563 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/0.4104, allocations: 115.9 kB / 0.5631 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.4118, allocations: 0.5382 MB / 0.5636 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.412, allocations: 35.91 kB / 0.5636 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.416, allocations: 3.643 MB / 0.5672 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.4161, allocations: 7.922 kB / 0.5672 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003861/0.4199, allocations: 1.743 MB / 0.5689 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005503/0.4205, allocations: 232.4 kB / 0.5691 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.4208, allocations: 28 kB / 0.5692 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4219, allocations: 123.8 kB / 0.5693 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004595/0.4224, allocations: 187.7 kB / 0.5695 GB, free: 8.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.361e-05/0.4225, allocations: 35.95 kB / 0.5695 GB, free: 8.504 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004611/0.423, allocations: 326.9 kB / 0.5698 GB, free: 8.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.423, allocations: 0 / 0.5698 GB, free: 8.188 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001151/0.4241, allocations: 212 kB / 0.57 GB, free: 7.98 MB / 430.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 (54): * Single equations (assignments): 50 * 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,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004971/0.4291, allocations: 2.561 MB / 0.5725 GB, free: 5.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00273/0.4319, allocations: 1.049 MB / 0.5735 GB, free: 4.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.4319, allocations: 0 / 0.5735 GB, free: 4.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.4335, allocations: 0.6236 MB / 0.5741 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.435, allocations: 140.3 kB / 0.5743 GB, free: 3.656 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.4506, allocations: 7.398 MB / 0.5815 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006365/0.4513, allocations: 0.9302 MB / 0.5824 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.4517, allocations: 81.02 kB / 0.5825 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004417/0.4522, allocations: 243.3 kB / 0.5827 GB, free: 10.74 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4522, allocations: 4 kB / 0.5827 GB, free: 10.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05598/0.5082, allocations: 22.03 MB / 0.6042 GB, free: 4.906 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.42, allocations: 0 / 0.6042 GB, free: 4.906 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches