Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_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.00126/0.001261, allocations: 108.8 kB / 17.73 MB, free: 5.34 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.001265/0.001265, allocations: 190.9 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09128, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006131/0.09746, allocations: 4.307 MB / 379 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2071/0.3047, allocations: 1.325 MB / 380.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.3058, allocations: 12.94 kB / 380.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007072/0.3066, allocations: 115.6 kB / 380.4 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.3077, allocations: 234.8 kB / 380.6 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.3092, allocations: 428.5 kB / 381.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.3112, allocations: 1.139 MB / 382.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005129/0.3117, allocations: 257.7 kB / 382.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.3129, allocations: 495.9 kB / 382.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008412/0.3137, allocations: 0.5092 MB / 383.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001962/0.3139, allocations: 92.41 kB / 383.5 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003901/0.3143, allocations: 146.7 kB / 383.7 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.3146, allocations: 232.5 kB / 383.9 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004905/0.3151, allocations: 442.9 kB / 384.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.3166, allocations: 1.069 MB / 385.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3167, allocations: 0 / 385.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3167, allocations: 0 / 385.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.3167, allocations: 0 / 385.4 MB, free: 7.988 MB / 318.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.00374/0.3205, allocations: 1.31 MB / 386.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.3205, allocations: 9.656 kB / 386.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.3207, allocations: 113 kB / 386.8 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.321, allocations: 92.48 kB / 386.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008716/0.3219, allocations: 451.9 kB / 387.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.857e-05/0.322, allocations: 52.84 kB / 387.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.3221, allocations: 73.45 kB / 387.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001911/0.324, allocations: 0.814 MB / 388.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.849e-05/0.3241, allocations: 6.391 kB / 388.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-05/0.3242, allocations: 29.78 kB / 388.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.3242, allocations: 15.41 kB / 388.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.3263, allocations: 0.8762 MB / 389.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005005/0.3313, allocations: 2.368 MB / 391.6 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.3329, allocations: 0.7159 MB / 392.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.334, allocations: 471.9 kB / 392.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.429e-05/0.3341, allocations: 17.61 kB / 392.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/0.3353, allocations: 0.5499 MB / 393.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.316e-06/0.3354, allocations: 0 / 393.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01114/0.3465, allocations: 4.234 MB / 397.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.3466, allocations: 68.14 kB / 397.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007594/0.3474, allocations: 389.9 kB / 398 MB, free: 1.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.3476, allocations: 61.67 kB / 398.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.3479, allocations: 272.6 kB / 398.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004028/0.3483, allocations: 387.7 kB / 398.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004649/0.3487, allocations: 188.6 kB / 398.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3489, allocations: 368.3 kB / 399.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3501, allocations: 436.9 kB / 399.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.3513, allocations: 0.5316 MB / 400.2 MB, free: 336 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/0.3532, allocations: 0.7849 MB / 401 MB, free: 15.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.3532, allocations: 1.031 kB / 401 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003544/0.3567, allocations: 1.355 MB / 402.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.3568, allocations: 5.406 kB / 402.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3568, allocations: 2.312 kB / 402.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.3581, allocations: 0.6506 MB / 403 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008413/0.359, allocations: 206.5 kB / 403.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004341/0.3633, allocations: 3.44 MB / 406.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.3648, allocations: 172.5 kB / 406.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.3651, allocations: 40.2 kB / 406.9 MB, free: 11.7 MB / 334.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.0006822/0.3657, allocations: 236.9 kB / 407.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002821/0.366, allocations: 71.39 kB / 407.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.3663, allocations: 102.7 kB / 407.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.3664, allocations: 10.34 kB / 407.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.3664, allocations: 0 / 407.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.3664, allocations: 11.97 kB / 407.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005409/0.3718, allocations: 2.502 MB / 409.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.3719, allocations: 1.812 kB / 409.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.3727, allocations: 175.6 kB / 410 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.3738, allocations: 0.616 MB / 410.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.374, allocations: 37.58 kB / 410.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003889/0.3779, allocations: 3.223 MB / 413.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.3779, allocations: 6.281 kB / 413.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004374/0.3823, allocations: 1.85 MB / 415.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005642/0.3829, allocations: 232.5 kB / 415.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/0.3831, allocations: 31.98 kB / 416 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.3846, allocations: 207.7 kB / 416.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000973/0.3856, allocations: 384.3 kB / 416.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.3857, allocations: 43.95 kB / 416.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003348/0.386, allocations: 271.2 kB / 416.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.386, allocations: 0 / 416.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001095/0.3872, allocations: 247.9 kB / 417.1 MB, free: 3.414 MB / 334.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.004605/0.3918, allocations: 2.445 MB / 419.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003077/0.3949, allocations: 1.192 MB / 420.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3949, allocations: 0 / 420.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.3968, allocations: 0.7782 MB / 421.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.398, allocations: 139.4 kB / 421.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/0.4133, allocations: 7.351 MB / 429 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.414, allocations: 0.9362 MB / 429.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004034/0.4144, allocations: 77.44 kB / 430 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.4148, allocations: 247.3 kB / 430.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4148, allocations: 0 / 430.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05852/0.4734, allocations: 23.65 MB / 453.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.22, allocations: 3.781 kB / 453.9 MB, free: 14.25 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches