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.00146/0.00146, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001608/0.001608, allocations: 187.1 kB / 18.66 MB, free: 4.434 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.497/1.497, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001815/0.001815, allocations: 59.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1008, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006013/0.1069, allocations: 4.315 MB / 379 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2078/0.3147, allocations: 1.33 MB / 380.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006821/0.3155, allocations: 12.72 kB / 380.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003886/0.3159, allocations: 117.5 kB / 380.4 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005658/0.3165, allocations: 230 kB / 380.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.3178, allocations: 425 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.3194, allocations: 1.137 MB / 382.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005381/0.3199, allocations: 260.7 kB / 382.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.3211, allocations: 485.5 kB / 382.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009044/0.3221, allocations: 0.5133 MB / 383.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002296/0.3223, allocations: 94.94 kB / 383.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004154/0.3227, allocations: 146.8 kB / 383.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.323, allocations: 228.8 kB / 383.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000467/0.3234, allocations: 444 kB / 384.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.3248, allocations: 1.069 MB / 385.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3248, allocations: 0 / 385.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3249, allocations: 0 / 385.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.3249, allocations: 0 / 385.4 MB, free: 8.012 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.003593/0.3285, allocations: 1.306 MB / 386.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3286, allocations: 9.75 kB / 386.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.3287, allocations: 113.2 kB / 386.8 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.329, allocations: 89.61 kB / 386.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007952/0.3298, allocations: 454.1 kB / 387.4 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.371e-05/0.3299, allocations: 51 kB / 387.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.3301, allocations: 75.86 kB / 387.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.332, allocations: 0.814 MB / 388.3 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.3321, allocations: 7.391 kB / 388.3 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.3322, allocations: 31.5 kB / 388.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.3323, allocations: 20.34 kB / 388.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/0.3344, allocations: 0.8699 MB / 389.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004555/0.339, allocations: 2.364 MB / 391.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.3405, allocations: 0.7169 MB / 392.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009474/0.3414, allocations: 476.4 kB / 392.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.136e-05/0.3415, allocations: 15.19 kB / 392.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.3428, allocations: 0.5485 MB / 393.3 MB, free: 4.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.417e-06/0.3428, allocations: 0 / 393.3 MB, free: 4.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01134/0.3541, allocations: 4.24 MB / 397.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.3542, allocations: 63.41 kB / 397.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/0.3547, allocations: 390.7 kB / 398 MB, free: 1.918 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.3548, allocations: 58.03 kB / 398.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.355, allocations: 272.6 kB / 398.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.3553, allocations: 388 kB / 398.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003101/0.3556, allocations: 183.8 kB / 398.9 MB, free: 1.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.3557, allocations: 374 kB / 399.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009881/0.3567, allocations: 440.4 kB / 399.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.3578, allocations: 0.5278 MB / 400.2 MB, free: 368 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.3596, allocations: 0.7893 MB / 401 MB, free: 15.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3596, allocations: 1.156 kB / 401 MB, free: 15.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003558/0.3632, allocations: 1.356 MB / 402.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.3633, allocations: 5.781 kB / 402.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3633, allocations: 4.688 kB / 402.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.3646, allocations: 0.6564 MB / 403 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/0.3654, allocations: 198.8 kB / 403.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004674/0.3701, allocations: 3.437 MB / 406.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3716, allocations: 177.2 kB / 406.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3717, allocations: 36.45 kB / 406.9 MB, free: 11.74 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.0005246/0.3723, allocations: 236.1 kB / 407.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.3725, allocations: 70.45 kB / 407.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000233/0.3727, allocations: 103.3 kB / 407.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3727, allocations: 10.38 kB / 407.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.3727, allocations: 0 / 407.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3728, allocations: 7.984 kB / 407.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/0.3776, allocations: 2.505 MB / 409.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.3777, allocations: 1.844 kB / 409.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008042/0.3785, allocations: 178.7 kB / 410 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.3796, allocations: 0.6264 MB / 410.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.3797, allocations: 33.59 kB / 410.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004135/0.3839, allocations: 3.214 MB / 413.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.3839, allocations: 6.875 kB / 413.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004313/0.3882, allocations: 1.855 MB / 415.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005314/0.3888, allocations: 232.5 kB / 415.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.3889, allocations: 28 kB / 416 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.3903, allocations: 207.7 kB / 416.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009892/0.3913, allocations: 380.3 kB / 416.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/0.3914, allocations: 43.95 kB / 416.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.3918, allocations: 267.2 kB / 416.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3918, allocations: 0 / 416.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009486/0.3927, allocations: 251.9 kB / 417.1 MB, free: 3.48 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.004816/0.3976, allocations: 2.446 MB / 419.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.4006, allocations: 1.192 MB / 420.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.4006, allocations: 0 / 420.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.4024, allocations: 0.7782 MB / 421.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4035, allocations: 147.7 kB / 421.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.4191, allocations: 7.346 MB / 429 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006092/0.4197, allocations: 0.9361 MB / 429.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.4202, allocations: 77.44 kB / 430 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.4206, allocations: 255.3 kB / 430.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4206, allocations: 0 / 430.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06343/0.4841, allocations: 23.64 MB / 453.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.91, allocations: 7.844 kB / 453.9 MB, free: 14.31 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