Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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) 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(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",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.00169/0.00169, allocations: 115.2 kB / 17.06 MB, free: 6 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.001844/0.001844, allocations: 193.4 kB / 18 MB, free: 5.074 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.53/1.53, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3178, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00621/0.3241, allocations: 4.292 MB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.3275, allocations: 1.391 MB / 405.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004986/0.328, allocations: 11.94 kB / 405.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004004/0.3285, allocations: 118.8 kB / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005478/0.329, allocations: 225.9 kB / 406.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.3302, allocations: 426 kB / 406.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.3316, allocations: 1.139 MB / 407.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005163/0.3321, allocations: 257.7 kB / 408.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008449/0.333, allocations: 482.5 kB / 408.5 MB, free: 476 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007669/0.3338, allocations: 0.5099 MB / 409 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.3339, allocations: 95.91 kB / 409.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.3343, allocations: 151.9 kB / 409.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002824/0.3346, allocations: 223.3 kB / 409.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005106/0.3351, allocations: 446 kB / 409.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.3366, allocations: 1.061 MB / 411 MB, free: 13.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.3366, allocations: 7.938 kB / 411 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3367, allocations: 0 / 411 MB, free: 13.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.3367, allocations: 0 / 411 MB, free: 13.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003851/0.3405, allocations: 1.301 MB / 412.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.325e-05/0.3407, allocations: 15.89 kB / 412.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.3409, allocations: 114.6 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000349/0.3412, allocations: 92.38 kB / 412.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008957/0.3421, allocations: 449.9 kB / 413 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.577e-05/0.3422, allocations: 50.38 kB / 413 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.3424, allocations: 80.31 kB / 413.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.3441, allocations: 0.8075 MB / 413.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.3442, allocations: 3.953 kB / 413.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.232e-05/0.3443, allocations: 28 kB / 413.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.3443, allocations: 16 kB / 414 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.3464, allocations: 0.8705 MB / 414.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004658/0.3511, allocations: 2.377 MB / 417.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.3527, allocations: 0.7112 MB / 417.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.3537, allocations: 480.2 kB / 418.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.143e-05/0.3538, allocations: 9 kB / 418.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.3551, allocations: 0.5478 MB / 418.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.106e-06/0.3551, allocations: 0 / 418.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01177/0.3669, allocations: 4.243 MB / 423.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.367, allocations: 68.41 kB / 423.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.3675, allocations: 393.9 kB / 423.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.3676, allocations: 57.69 kB / 423.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.3679, allocations: 273.5 kB / 424 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003488/0.3682, allocations: 372.9 kB / 424.3 MB, free: 260 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.3686, allocations: 190.8 kB / 424.5 MB, free: 60 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.3688, allocations: 370.8 kB / 424.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3699, allocations: 438.4 kB / 425.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.371, allocations: 0.5306 MB / 425.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.3727, allocations: 0.783 MB / 426.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.3728, allocations: 4 kB / 426.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003271/0.376, allocations: 1.358 MB / 428 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3761, allocations: 4 kB / 428 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.3761, allocations: 0 / 428 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.3774, allocations: 0.6504 MB / 428.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/0.3783, allocations: 203.6 kB / 428.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.3829, allocations: 3.431 MB / 432.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3844, allocations: 179.9 kB / 432.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.3845, allocations: 35.98 kB / 432.5 MB, free: 7.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005469/0.385, allocations: 221.6 kB / 432.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.3852, allocations: 75.56 kB / 432.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.3855, allocations: 103 kB / 432.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.3855, allocations: 15.94 kB / 432.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.3855, allocations: 0 / 432.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.3856, allocations: 3.984 kB / 432.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005319/0.3909, allocations: 2.506 MB / 435.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3909, allocations: 0 / 435.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008425/0.3918, allocations: 180 kB / 435.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.393, allocations: 0.6192 MB / 436.2 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.81e-05/0.3931, allocations: 39.97 kB / 436.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004161/0.3973, allocations: 3.223 MB / 439.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3973, allocations: 0 / 439.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/0.4015, allocations: 1.849 MB / 441.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004832/0.4021, allocations: 236.5 kB / 441.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.4022, allocations: 32.19 kB / 441.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.4035, allocations: 211.7 kB / 441.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009739/0.4045, allocations: 388.3 kB / 442.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-05/0.4046, allocations: 39.97 kB / 442.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003419/0.405, allocations: 267.1 kB / 442.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.405, allocations: 0 / 442.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008603/0.4059, allocations: 247.9 kB / 442.7 MB, free: 13.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004771/0.4106, allocations: 2.447 MB / 445.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00283/0.4135, allocations: 1.188 MB / 446.3 MB, free: 9.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.4135, allocations: 4 kB / 446.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.4153, allocations: 0.7899 MB / 447.1 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009544/0.4163, allocations: 144.5 kB / 447.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.4312, allocations: 7.345 MB / 454.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006292/0.4319, allocations: 0.9283 MB / 455.5 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.4323, allocations: 85.44 kB / 455.6 MB, free: 16 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004286/0.4328, allocations: 247.4 kB / 455.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4328, allocations: 0 / 455.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0838/0.5166, allocations: 23.64 MB / 479.5 MB, free: 8.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.56, allocations: 7.453 kB / 479.5 MB, free: 8.328 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches