Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.001877/0.001877, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.002086/0.002086, allocations: 187 kB / 18.67 MB, free: 4.387 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.449/1.449, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001775/0.001775, allocations: 52.39 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08382/0.0856, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003052/0.08869, allocations: 1.62 MB / 376.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.08972, allocations: 0.5158 MB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.13e-05/0.08982, allocations: 8 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.356e-05/0.08991, allocations: 7.922 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.571e-05/0.09001, allocations: 31.7 kB / 376.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.09022, allocations: 23.97 kB / 376.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.09039, allocations: 107.5 kB / 376.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.09053, allocations: 31.98 kB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.293e-05/0.0906, allocations: 31.92 kB / 377 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.274e-05/0.0907, allocations: 47.84 kB / 377 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.09072, allocations: 8 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.475e-05/0.0908, allocations: 8 kB / 377.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.942e-05/0.09084, allocations: 19.92 kB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.09092, allocations: 47.8 kB / 377.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.09109, allocations: 99.61 kB / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.0911, allocations: 0 / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09111, allocations: 0 / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.09112, allocations: 0 / 377.2 MB, free: 2.469 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005116/0.09163, allocations: 387.2 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.09168, allocations: 12.03 kB / 377.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.147e-05/0.09173, allocations: 34.75 kB / 377.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.09185, allocations: 16.88 kB / 377.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.09202, allocations: 172.3 kB / 377.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.09203, allocations: 4.375 kB / 377.8 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.09207, allocations: 16.31 kB / 377.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.09225, allocations: 81.78 kB / 377.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.09227, allocations: 4 kB / 377.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.09229, allocations: 8 kB / 377.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.09231, allocations: 0 / 377.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.09242, allocations: 59.86 kB / 378 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007028/0.09314, allocations: 400.5 kB / 378.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.09328, allocations: 66.56 kB / 378.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.918e-05/0.09334, allocations: 40.84 kB / 378.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.09337, allocations: 0 / 378.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.0934, allocations: 34.56 kB / 378.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.09341, allocations: 0 / 378.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002253/0.09364, allocations: 97.83 kB / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.09368, allocations: 55.39 kB / 378.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.683e-05/0.09379, allocations: 101.9 kB / 378.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.09381, allocations: 33.64 kB / 378.8 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.09389, allocations: 104 kB / 378.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.09392, allocations: 31.73 kB / 379 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.09397, allocations: 25.72 kB / 379 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.09413, allocations: 318.8 kB / 379.3 MB, free: 188 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.541e-05/0.09419, allocations: 20 kB / 379.3 MB, free: 168 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.511e-05/0.09426, allocations: 46.56 kB / 379.4 MB, free: 112 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.09437, allocations: 78.44 kB / 379.4 MB, free: 24 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.09438, allocations: 0 / 379.4 MB, free: 24 kB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.1516/0.2459, allocations: 97.06 kB / 379.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.246, allocations: 5.781 kB / 379.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.246, allocations: 3.297 kB / 379.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.246, allocations: 2.969 kB / 379.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2462, allocations: 22.56 kB / 379.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2462, allocations: 1.375 kB / 379.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.254e-05/0.2463, allocations: 15.77 kB / 379.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.2463, allocations: 2.75 kB / 379.6 MB, free: 12.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.097e-05/0.2464, allocations: 127 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.2464, allocations: 7.438 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.2464, allocations: 9.547 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.2464, allocations: 2.219 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2465, allocations: 3.094 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2465, allocations: 0.6094 kB / 379.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.2466, allocations: 194.7 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2467, allocations: 0 / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.2468, allocations: 17.47 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2468, allocations: 2.219 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.2468, allocations: 2.969 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.2468, allocations: 0 / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2468, allocations: 11.61 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.247, allocations: 193 kB / 380.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.247, allocations: 85.16 kB / 380.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.247, allocations: 2.641 kB / 380.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-05/0.2471, allocations: 3.25 kB / 380.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-05/0.2471, allocations: 4.766 kB / 380.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.2471, allocations: 1.375 kB / 380.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.722e-05/0.2472, allocations: 89.27 kB / 380.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2472, allocations: 0 / 380.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.2474, allocations: 24.75 kB / 380.3 MB, free: 12.09 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002886/0.2477, allocations: 0.7299 MB / 381.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.2479, allocations: 55.17 kB / 381.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2479, allocations: 1.375 kB / 381.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.228e-05/0.2479, allocations: 29.02 kB / 381.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.2483, allocations: 11.48 kB / 381.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.2495, allocations: 1.548 MB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.2496, allocations: 0.6913 MB / 383.4 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.709e-05/0.2497, allocations: 8.766 kB / 383.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.2497, allocations: 22.14 kB / 383.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2497, allocations: 0.75 kB / 383.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.2753, allocations: 1.797 MB / 385.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.206, allocations: 5.359 kB / 385.2 MB, free: 8.961 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches