Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009719/0.000972, allocations: 183.8 kB / 8.134 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 221.4 MB / 229.9 MB, free: 3.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009143/0.0009144, allocations: 91.97 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.242e-06/6.272e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2208, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08438/0.3053, allocations: 80.84 MB / 467.7 MB, free: 5.922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.3055, allocations: 72.59 kB / 467.8 MB, free: 5.852 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04265/0.3482, allocations: 15.85 MB / 483.7 MB, free: 5.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.886e-05/0.3483, allocations: 12 kB / 483.7 MB, free: 5.926 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.001999/0.3503, allocations: 1.1 MB / 484.8 MB, free: 4.762 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3503, allocations: 8.031 kB / 484.8 MB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.3505, allocations: 111 kB / 484.9 MB, free: 4.645 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008695/0.3514, allocations: 0.5358 MB / 485.4 MB, free: 4.066 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.3516, allocations: 130.3 kB / 485.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.3517, allocations: 39.91 kB / 485.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008666/0.3526, allocations: 478.5 kB / 486.1 MB, free: 3.414 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009954/0.3536, allocations: 0.6978 MB / 486.8 MB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.3536, allocations: 4 kB / 486.8 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.3537, allocations: 0 / 486.8 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.3537, allocations: 12 kB / 486.8 MB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.357, allocations: 2.004 MB / 488.8 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/0.3577, allocations: 437.1 kB / 489.2 MB, free: 76 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/0.3583, allocations: 354.7 kB / 489.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.551e-05/0.3584, allocations: 12.66 kB / 489.6 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.3584, allocations: 51.22 kB / 489.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 1.983e-06/0.3585, allocations: 0 / 489.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.002115/0.3606, allocations: 0.8534 MB / 490.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003173/0.3609, allocations: 0.8195 MB / 491.3 MB, free: 13.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/0.3615, allocations: 0.4918 MB / 491.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.3616, allocations: 29.7 kB / 491.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.3617, allocations: 234.7 kB / 492 MB, free: 13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.3619, allocations: 252.2 kB / 492.3 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.3619, allocations: 0 / 492.3 MB, free: 12.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3621, allocations: 386.7 kB / 492.7 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.3625, allocations: 201.6 kB / 492.9 MB, free: 12.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005477/0.363, allocations: 472.1 kB / 493.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.3634, allocations: 245.3 kB / 493.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.3634, allocations: 7.875 kB / 493.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002144/0.3656, allocations: 0.9032 MB / 494.5 MB, free: 10.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3656, allocations: 4 kB / 494.5 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3656, allocations: 0 / 494.5 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006474/0.3663, allocations: 211.2 kB / 494.7 MB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007216/0.367, allocations: 151.8 kB / 494.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007505/0.3745, allocations: 6.068 MB / 0.4892 GB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.3758, allocations: 95.39 kB / 0.4892 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/0.3759, allocations: 24.05 kB / 0.4893 GB, free: 3.418 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * 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.0003422/0.3763, allocations: 140.4 kB / 0.4894 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.3765, allocations: 83.06 kB / 0.4895 GB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002756/0.3768, allocations: 79.73 kB / 0.4896 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3768, allocations: 4 kB / 0.4896 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.3768, allocations: 0 / 0.4896 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002064/0.3789, allocations: 1.146 MB / 0.4907 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/0.3824, allocations: 1.753 MB / 0.4924 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3824, allocations: 3.938 kB / 0.4924 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1198/0.5022, allocations: 154.8 kB / 0.4925 GB, free: 133.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/0.5027, allocations: 164.5 kB / 0.4927 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/0.5028, allocations: 3.312 kB / 0.4927 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004389/0.5072, allocations: 4.639 MB / 0.4972 GB, free: 129.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5072, allocations: 1.719 kB / 0.4972 GB, free: 129.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002243/0.5095, allocations: 1.241 MB / 0.4984 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.5098, allocations: 237.6 kB / 0.4987 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.51, allocations: 3.875 kB / 0.4987 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/0.5105, allocations: 51.94 kB / 0.4987 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.5106, allocations: 47.84 kB / 0.4988 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.5107, allocations: 17.44 kB / 0.4988 GB, free: 129.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004247/0.5111, allocations: 394.9 kB / 0.4992 GB, free: 129.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007478/0.5119, allocations: 256.2 kB / 0.4994 GB, free: 129.1 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 () * 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.0001754/0.512, allocations: 125.8 kB / 0.4995 GB, free: 129.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.5136, allocations: 1.123 MB / 0.5006 GB, free: 128.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5137, allocations: 3.969 kB / 0.5006 GB, free: 128.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009067/0.5146, allocations: 0.6641 MB / 0.5013 GB, free: 128.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007439/0.5153, allocations: 187.1 kB / 0.5015 GB, free: 128.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.5175, allocations: 1.223 MB / 0.5027 GB, free: 128 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/0.518, allocations: 1.024 MB / 0.5037 GB, free: 127.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.518, allocations: 0 / 0.5037 GB, free: 127.2 MB / 378.7 MB Notification: Performance of Templates: time 0.02325/0.5413, allocations: 14.88 MB / 0.5182 GB, free: 126.4 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches