Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_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.001623/0.001623, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001829/0.001829, allocations: 196 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 51.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2557, allocations: 49.43 MB / 400.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002619/0.2583, allocations: 1.631 MB / 401.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008105/0.2592, allocations: 0.505 MB / 402.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.98e-05/0.2592, allocations: 4 kB / 402.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.683e-05/0.2593, allocations: 11.92 kB / 402.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.467e-05/0.2594, allocations: 31.7 kB / 402.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.2596, allocations: 27.91 kB / 402.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.2598, allocations: 99.52 kB / 402.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.2599, allocations: 39.95 kB / 402.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.84e-05/0.26, allocations: 39.86 kB / 402.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.978e-05/0.2601, allocations: 47.83 kB / 402.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.2601, allocations: 8 kB / 402.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.759e-05/0.2602, allocations: 16 kB / 402.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.2602, allocations: 12 kB / 402.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.2603, allocations: 43.8 kB / 402.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.2605, allocations: 99.61 kB / 402.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.2605, allocations: 0 / 402.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2605, allocations: 0 / 402.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2605, allocations: 0 / 402.8 MB, free: 6.391 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.0004622/0.261, allocations: 395.1 kB / 403.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.261, allocations: 8.031 kB / 403.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.004e-05/0.261, allocations: 42.69 kB / 403.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.2612, allocations: 16.88 kB / 403.3 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.2613, allocations: 160.4 kB / 403.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.2613, allocations: 8.375 kB / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.2613, allocations: 8.375 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.2615, allocations: 89.73 kB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2615, allocations: 7.875 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.2615, allocations: 12 kB / 403.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2616, allocations: 3.938 kB / 403.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.2617, allocations: 51.97 kB / 403.6 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.2623, allocations: 392.5 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.2624, allocations: 70.55 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.327e-05/0.2625, allocations: 40.84 kB / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.2625, allocations: 0 / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.2626, allocations: 34.56 kB / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.2626, allocations: 0 / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002079/0.2628, allocations: 97.81 kB / 404.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.2628, allocations: 55.41 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.396e-05/0.2629, allocations: 105.8 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.2629, allocations: 29.7 kB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.896e-05/0.263, allocations: 99.98 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.263, allocations: 35.69 kB / 404.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.2631, allocations: 25.72 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2632, allocations: 318.8 kB / 404.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.334e-05/0.2632, allocations: 23.98 kB / 404.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.935e-05/0.2633, allocations: 45.19 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.2634, allocations: 66.52 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2634, allocations: 0 / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001485/0.2636, allocations: 109.5 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2636, allocations: 8 kB / 405.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2636, allocations: 0 / 405.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2636, allocations: 3.938 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.2638, allocations: 27.92 kB / 405.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.2638, allocations: 4.062 kB / 405.2 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.119e-05/0.2638, allocations: 11.89 kB / 405.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.2639, allocations: 4 kB / 405.2 MB, free: 3.781 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.591e-05/0.2639, allocations: 117.8 kB / 405.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.264, allocations: 11.94 kB / 405.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.264, allocations: 12.31 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.264, allocations: 256 / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.264, allocations: 0 / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.264, allocations: 4 kB / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.2642, allocations: 189.6 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2642, allocations: 4 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.2643, allocations: 23.94 kB / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2643, allocations: 0 / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.2644, allocations: 7.922 kB / 405.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2644, allocations: 0 / 405.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2644, allocations: 3.984 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.2646, allocations: 187.4 kB / 405.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.2646, allocations: 89.12 kB / 405.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.2647, allocations: 11.94 kB / 405.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/0.2647, allocations: 0 / 405.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.2648, allocations: 7.938 kB / 405.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.2648, allocations: 0 / 405.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.411e-05/0.2648, allocations: 87.27 kB / 405.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2648, allocations: 0 / 405.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000237/0.2651, allocations: 27.95 kB / 406 MB, free: 2.918 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.0004557/0.2655, allocations: 0.7319 MB / 406.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.2657, allocations: 59.86 kB / 406.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2657, allocations: 0 / 406.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.654e-05/0.2657, allocations: 23.92 kB / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.266, allocations: 8 kB / 406.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.2675, allocations: 1.539 MB / 408.3 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.2678, allocations: 0.6924 MB / 409 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.585e-05/0.2678, allocations: 8 kB / 409 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.295e-05/0.2679, allocations: 19.42 kB / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2679, allocations: 0 / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.2864, allocations: 1.805 MB / 410.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/7.773, allocations: 15.84 kB / 410.9 MB, free: 13.96 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches