Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.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) 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(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001355, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 67.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3135, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006496/0.32, allocations: 4.464 MB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003458/0.3235, allocations: 1.57 MB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005611/0.3242, allocations: 11.94 kB / 414.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005368/0.3247, allocations: 142.7 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006745/0.3254, allocations: 273.7 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.3265, allocations: 418.9 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.3278, allocations: 1.17 MB / 416.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005577/0.3283, allocations: 269.7 kB / 417.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.3296, allocations: 0.4985 MB / 417.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009141/0.3305, allocations: 0.5293 MB / 418.1 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.3308, allocations: 96 kB / 418.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005881/0.3314, allocations: 163.9 kB / 418.3 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003488/0.3318, allocations: 231.3 kB / 418.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006231/0.3324, allocations: 473.8 kB / 419 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.334, allocations: 1.124 MB / 420.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.334, allocations: 0 / 420.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.334, allocations: 0 / 420.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.334, allocations: 4 kB / 420.2 MB, free: 6.105 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003295/0.3373, allocations: 1.352 MB / 421.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3374, allocations: 12.03 kB / 421.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.3375, allocations: 110.7 kB / 421.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000512/0.3381, allocations: 124.3 kB / 421.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007316/0.3388, allocations: 469.9 kB / 422.2 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/0.3389, allocations: 54.38 kB / 422.3 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.339, allocations: 71.94 kB / 422.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.3408, allocations: 0.8036 MB / 423.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/0.3408, allocations: 7.953 kB / 423.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.904e-05/0.3409, allocations: 28 kB / 423.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.3409, allocations: 20 kB / 423.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/0.3429, allocations: 0.8431 MB / 424 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0048/0.3477, allocations: 2.408 MB / 426.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.3493, allocations: 0.7358 MB / 427.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009457/0.3503, allocations: 452.3 kB / 427.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.04e-05/0.3504, allocations: 20.94 kB / 427.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.3516, allocations: 0.5282 MB / 428.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 4.007e-06/0.3516, allocations: 4 kB / 428.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01154/0.3632, allocations: 4.182 MB / 432.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.3633, allocations: 64.41 kB / 432.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005908/0.3639, allocations: 421.8 kB / 432.8 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.364, allocations: 57.69 kB / 432.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.3643, allocations: 289.5 kB / 433.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.3646, allocations: 384.8 kB / 433.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/0.365, allocations: 190.8 kB / 433.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3652, allocations: 382.8 kB / 434.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009358/0.3661, allocations: 410.4 kB / 434.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3672, allocations: 0.511 MB / 435 MB, free: 6.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.3688, allocations: 0.7402 MB / 435.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3688, allocations: 4 kB / 435.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003131/0.372, allocations: 1.303 MB / 437.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.372, allocations: 8 kB / 437.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.372, allocations: 0 / 437.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.3731, allocations: 0.5333 MB / 437.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008241/0.374, allocations: 203.6 kB / 437.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004444/0.3784, allocations: 3.399 MB / 441.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.3797, allocations: 175.8 kB / 441.4 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.635e-05/0.3798, allocations: 40.03 kB / 441.4 MB, free: 148 kB / 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0005003/0.3803, allocations: 229.7 kB / 441.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3805, allocations: 79.47 kB / 441.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.3807, allocations: 107.2 kB / 441.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.3807, allocations: 15.94 kB / 441.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3807, allocations: 0 / 441.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.3807, allocations: 3.984 kB / 441.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/0.3856, allocations: 2.472 MB / 444.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.3856, allocations: 4 kB / 444.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/0.3864, allocations: 176.1 kB / 444.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009915/0.3874, allocations: 0.5059 MB / 445 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.792e-05/0.3875, allocations: 35.97 kB / 445 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003982/0.3915, allocations: 3.184 MB / 448.2 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.3915, allocations: 3.938 kB / 448.2 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003843/0.3954, allocations: 1.776 MB / 450 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004785/0.3959, allocations: 244.4 kB / 450.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.396, allocations: 32 kB / 450.3 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.3973, allocations: 199.7 kB / 450.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009008/0.3982, allocations: 380.4 kB / 450.8 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/0.3983, allocations: 47.95 kB / 450.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003539/0.3986, allocations: 287.1 kB / 451.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3987, allocations: 0 / 451.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000865/0.3995, allocations: 240 kB / 451.4 MB, free: 5.781 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 (90): * 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: 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005408/0.4049, allocations: 2.604 MB / 454 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.4077, allocations: 1.157 MB / 455.1 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.4077, allocations: 4 kB / 455.1 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.4094, allocations: 0.7625 MB / 455.9 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.4105, allocations: 168.1 kB / 456.1 MB, free: 1.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/0.4255, allocations: 7.293 MB / 463.4 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.4262, allocations: 0.9556 MB / 464.3 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.4267, allocations: 81.7 kB / 464.4 MB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.4271, allocations: 267.3 kB / 464.7 MB, free: 8.328 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4271, allocations: 0 / 464.7 MB, free: 8.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06693/0.494, allocations: 24.04 MB / 488.7 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.64, allocations: 0 / 488.7 MB, free: 0.5078 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches