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.001075/0.001075, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001133/0.001133, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.292/1.292, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009877/0.0009878, allocations: 46.39 kB / 300.7 MB, free: 5.691 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07993/0.08094, allocations: 49.43 MB / 350.2 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002676/0.08365, allocations: 1.623 MB / 351.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007873/0.08446, allocations: 0.5157 MB / 352.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.08452, allocations: 0 / 352.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.688e-05/0.08459, allocations: 15.86 kB / 352.3 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.175e-05/0.08467, allocations: 27.77 kB / 352.3 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.08488, allocations: 31.89 kB / 352.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.085, allocations: 95.55 kB / 352.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.08512, allocations: 39.97 kB / 352.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.449e-05/0.08518, allocations: 39.8 kB / 352.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.805e-05/0.08527, allocations: 47.83 kB / 352.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.08529, allocations: 8 kB / 352.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.62e-05/0.08537, allocations: 8 kB / 352.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.08539, allocations: 19.98 kB / 352.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.92e-05/0.08545, allocations: 39.81 kB / 352.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.08559, allocations: 103.9 kB / 352.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.0856, allocations: 7.984 kB / 352.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08561, allocations: 0 / 352.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.08562, allocations: 0 / 352.8 MB, free: 1.605 MB / 286.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.0004203/0.08605, allocations: 379.2 kB / 353.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.08609, allocations: 8.031 kB / 353.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.08613, allocations: 42.73 kB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.08624, allocations: 12.84 kB / 353.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.08637, allocations: 164.3 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.08639, allocations: 8.375 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.08642, allocations: 12.38 kB / 353.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.08659, allocations: 97.67 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.08661, allocations: 0 / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.08662, allocations: 4 kB / 353.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.08663, allocations: 3.938 kB / 353.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.08674, allocations: 51.97 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006197/0.08737, allocations: 400.4 kB / 353.9 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.0875, allocations: 74.55 kB / 354 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.83e-05/0.08755, allocations: 28.86 kB / 354 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.08757, allocations: 0 / 354 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.0876, allocations: 38.48 kB / 354.1 MB, free: 140 kB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.0876, allocations: 0 / 354.1 MB, free: 140 kB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001934/0.0878, allocations: 93.67 kB / 354.2 MB, free: 40 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.08785, allocations: 55.41 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.068e-05/0.08794, allocations: 109.8 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.08796, allocations: 25.7 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.08802, allocations: 103.9 kB / 354.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.08805, allocations: 27.56 kB / 354.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.0881, allocations: 29.7 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.725e-05/0.0882, allocations: 310.8 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.328e-05/0.08825, allocations: 27.98 kB / 354.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.017e-05/0.08832, allocations: 46.75 kB / 354.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.456e-05/0.08842, allocations: 70.52 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.08843, allocations: 4 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001493/0.08858, allocations: 105.5 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.0886, allocations: 4.062 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.08861, allocations: 7.938 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.08863, allocations: 7.938 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.08876, allocations: 23.94 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.08877, allocations: 0 / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.265e-05/0.08882, allocations: 15.89 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.08883, allocations: 0 / 355.1 MB, free: 15.01 MB / 302.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 8.242e-05/0.08892, allocations: 117.8 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.08895, allocations: 11.89 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.08899, allocations: 16.31 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.08899, allocations: 0 / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.089, allocations: 4 kB / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.08901, allocations: 0 / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.0892, allocations: 189.6 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.0892, allocations: 0 / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.08931, allocations: 23.92 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.08932, allocations: 0 / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.699e-06/0.08934, allocations: 3.938 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.08934, allocations: 4 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.08935, allocations: 0 / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.08955, allocations: 195.4 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.0896, allocations: 77.11 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.08962, allocations: 3.938 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.762e-05/0.08968, allocations: 4.031 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.925e-05/0.08971, allocations: 4 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.08972, allocations: 7.938 kB / 355.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.771e-05/0.08976, allocations: 87.2 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08977, allocations: 4.062 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.09001, allocations: 23.91 kB / 355.9 MB, free: 14.15 MB / 302.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.0004189/0.09044, allocations: 0.7245 MB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.09059, allocations: 67.92 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.0906, allocations: 192 / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.507e-05/0.09065, allocations: 31.92 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.09094, allocations: 8.188 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.09232, allocations: 1.53 MB / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.09257, allocations: 0.6963 MB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.226e-05/0.09261, allocations: 4 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.09265, allocations: 23.44 kB / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.09266, allocations: 0 / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0551/0.1478, allocations: 1.75 MB / 360.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.641, allocations: 19.86 kB / 360.7 MB, free: 9.227 MB / 302.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