Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 182.3 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.4 MB / 224.2 MB, free: 9.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007662/0.0007661, allocations: 90.36 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2068, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09398/0.3008, allocations: 82.49 MB / 459.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.3011, allocations: 71.97 kB / 459.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06237/0.3635, allocations: 16.46 MB / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3636, allocations: 4 kB / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.413e-05/0.3637, allocations: 19.98 kB / 476.1 MB, free: 13.41 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.003187/0.3669, allocations: 1.185 MB / 477.2 MB, free: 12.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3669, allocations: 12.03 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000365/0.3673, allocations: 103.8 kB / 477.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.3688, allocations: 0.5676 MB / 477.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002912/0.3691, allocations: 151 kB / 478.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.3693, allocations: 56.75 kB / 478.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/0.3715, allocations: 0.8673 MB / 479 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.309e-05/0.3715, allocations: 0 / 479 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.3716, allocations: 32 kB / 479 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.3717, allocations: 12 kB / 479 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.3739, allocations: 0.6492 MB / 479.7 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005144/0.379, allocations: 2.092 MB / 481.8 MB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.3814, allocations: 1.083 MB / 482.9 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.3826, allocations: 404.9 kB / 483.3 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.708e-05/0.3826, allocations: 24.62 kB / 483.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.3827, allocations: 43.22 kB / 483.3 MB, free: 5.715 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.466e-06/0.3827, allocations: 3.938 kB / 483.3 MB, free: 5.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.007459/0.3902, allocations: 2.011 MB / 485.3 MB, free: 3.609 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004062/0.3906, allocations: 0.8195 MB / 486.2 MB, free: 2.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.3918, allocations: 0.6215 MB / 486.8 MB, free: 1.961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.675e-05/0.3919, allocations: 49.7 kB / 486.8 MB, free: 1.906 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003569/0.3923, allocations: 337 kB / 487.2 MB, free: 1.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002875/0.3926, allocations: 256.2 kB / 487.4 MB, free: 1.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.848e-05/0.3927, allocations: 12 kB / 487.4 MB, free: 1.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.3929, allocations: 390.8 kB / 487.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.3939, allocations: 293.8 kB / 488.1 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.3952, allocations: 0.5741 MB / 488.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.3973, allocations: 0.7286 MB / 489.4 MB, free: 15.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3973, allocations: 0 / 489.4 MB, free: 15.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003845/0.4012, allocations: 1.184 MB / 490.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.286e-05/0.4013, allocations: 89.09 kB / 490.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.4013, allocations: 3.938 kB / 490.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009364/0.4022, allocations: 251.3 kB / 490.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00092/0.4032, allocations: 151.7 kB / 491.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.4134, allocations: 6.494 MB / 497.6 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.4145, allocations: 115.4 kB / 497.7 MB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.4146, allocations: 27.98 kB / 497.7 MB, free: 6.297 MB / 378.7 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 (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005424/0.4152, allocations: 221.7 kB / 497.9 MB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.4155, allocations: 87.06 kB / 498 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.4158, allocations: 92 kB / 498.1 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.4158, allocations: 11.94 kB / 498.1 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4158, allocations: 0 / 498.1 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003624/0.4194, allocations: 1.335 MB / 499.4 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005747/0.4252, allocations: 2.019 MB / 0.4897 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.4252, allocations: 4 kB / 0.4897 GB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4262, allocations: 143.8 kB / 0.4898 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007998/0.427, allocations: 222.4 kB / 0.49 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.667e-05/0.4271, allocations: 19.98 kB / 0.4901 GB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1779/0.605, allocations: 5.039 MB / 0.495 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.605, allocations: 0 / 0.495 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003964/0.609, allocations: 1.509 MB / 0.4965 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003936/0.6094, allocations: 242.2 kB / 0.4967 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.6096, allocations: 16.78 kB / 0.4967 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.61, allocations: 68.81 kB / 0.4968 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.6102, allocations: 57.33 kB / 0.4968 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.6103, allocations: 22.16 kB / 0.4969 GB, free: 102.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005097/0.6108, allocations: 449.8 kB / 0.4973 GB, free: 102 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.6108, allocations: 0 / 0.4973 GB, free: 102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008592/0.6117, allocations: 292.6 kB / 0.4976 GB, free: 102 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.6119, allocations: 137.1 kB / 0.4977 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.6138, allocations: 1.4 MB / 0.4991 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.6138, allocations: 2.312 kB / 0.4991 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.6151, allocations: 0.8031 MB / 0.4998 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.6162, allocations: 224.9 kB / 0.5001 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.6187, allocations: 1.912 MB / 0.5019 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.6191, allocations: 0.943 MB / 0.5028 GB, free: 99.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004901/0.6196, allocations: 96.91 kB / 0.5029 GB, free: 99.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.6198, allocations: 65.62 kB / 0.503 GB, free: 99.32 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6198, allocations: 0 / 0.503 GB, free: 99.32 MB / 378.7 MB Notification: Performance of Templates: time 0.02269/0.6425, allocations: 16.41 MB / 0.519 GB, free: 93.51 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches