Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") [: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.001487/0.001487, allocations: 174.3 kB / 8.515 MB, free: 1.84 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.308/1.308, allocations: 221.4 MB / 230.3 MB, free: 7.613 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.0009261/0.0009262, allocations: 93.78 kB / 281.2 MB, free: 5.422 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2195/0.2195, allocations: 44.15 MB / 376.1 MB, free: 3.188 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.955e-06, allocations: 224 / 444 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1389, allocations: 61.91 MB / 0.4941 GB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.648/7.787, allocations: 3.17 GB / 3.664 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/7.787, allocations: 80.39 kB / 3.664 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 9.92/17.71, allocations: 3.1 GB / 6.764 GB, free: 65.45 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001819/17.71, allocations: 64.91 kB / 6.764 GB, free: 65.45 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01553/17.72, allocations: 3.6 MB / 6.768 GB, free: 63.77 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/17.72, allocations: 11.53 kB / 6.768 GB, free: 63.76 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002015/17.72, allocations: 315.7 kB / 6.768 GB, free: 63.62 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00647/17.73, allocations: 2.103 MB / 6.77 GB, free: 63.16 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/17.73, allocations: 150 kB / 6.77 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009821/17.73, allocations: 118.3 kB / 6.771 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006159/17.74, allocations: 2.937 MB / 6.773 GB, free: 63.08 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006742/17.75, allocations: 3.1 MB / 6.776 GB, free: 62.61 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.578e-05/17.75, allocations: 13.12 kB / 6.776 GB, free: 62.6 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005024/17.75, allocations: 3.938 kB / 6.776 GB, free: 62.6 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002301/17.75, allocations: 214.5 kB / 6.777 GB, free: 62.6 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02275/17.77, allocations: 12.06 MB / 6.788 GB, free: 57.69 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/17.77, allocations: 1.36 MB / 6.79 GB, free: 57.66 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001952/17.77, allocations: 1.346 MB / 6.791 GB, free: 57.66 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009259/17.78, allocations: 6.017 MB / 6.797 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/17.78, allocations: 56.5 kB / 6.797 GB, free: 54.67 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 4.719e-06/17.78, allocations: 0 / 6.797 GB, free: 54.67 MB / 0.5573 GB Notification: Performance of matching and sorting (n=199): time 0.02799/17.81, allocations: 8.81 MB / 6.806 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/17.81, allocations: 128.4 kB / 6.806 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002524/17.81, allocations: 1.214 MB / 6.807 GB, free: 53.47 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003467/17.81, allocations: 25.7 kB / 6.807 GB, free: 53.44 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005136/17.81, allocations: 0.799 MB / 6.808 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008381/17.81, allocations: 0.6598 MB / 6.808 GB, free: 52.53 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/17.82, allocations: 3.188 kB / 6.808 GB, free: 52.53 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001668/17.82, allocations: 399.8 kB / 6.809 GB, free: 52.22 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/17.82, allocations: 1.212 MB / 6.81 GB, free: 52.21 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/17.82, allocations: 1.716 MB / 6.812 GB, free: 51.66 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006941/17.83, allocations: 2.5 MB / 6.814 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.915e-05/17.83, allocations: 6.531 kB / 6.814 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01345/17.84, allocations: 4.823 MB / 6.819 GB, free: 51.39 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001355/17.84, allocations: 5.784 MB / 6.824 GB, free: 45.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.252e-05/17.84, allocations: 14.25 kB / 6.824 GB, free: 45.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003152/17.84, allocations: 0.9822 MB / 6.825 GB, free: 45.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/17.85, allocations: 474.4 kB / 6.826 GB, free: 45.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/17.86, allocations: 10.46 MB / 6.836 GB, free: 37.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003876/17.86, allocations: 143.6 kB / 6.836 GB, free: 37.81 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009352/17.86, allocations: 113 kB / 6.836 GB, free: 37.81 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/17.86, allocations: 2.75 kB / 6.836 GB, free: 37.81 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01221/17.87, allocations: 4.269 MB / 6.84 GB, free: 37.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/17.87, allocations: 14 kB / 6.84 GB, free: 37.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/17.88, allocations: 0.8262 MB / 6.841 GB, free: 37.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002574/17.88, allocations: 494.7 kB / 6.842 GB, free: 37.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00824/17.89, allocations: 10.02 MB / 6.852 GB, free: 30.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/17.89, allocations: 134.1 kB / 6.852 GB, free: 30 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007337/17.89, allocations: 111.8 kB / 6.852 GB, free: 30 MB / 0.5573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump.dp_pump:VARIABLE(unit = "Pa" ) "Pressure change" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (249): * Single equations (assignments): 241 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {5 14,2 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001206/17.89, allocations: 169.4 kB / 6.852 GB, free: 29.88 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008697/17.89, allocations: 203.7 kB / 6.852 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/17.9, allocations: 4.396 MB / 6.856 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.63e-05/17.9, allocations: 22.52 kB / 6.856 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/17.91, allocations: 11.28 kB / 6.856 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008164/17.91, allocations: 3.663 MB / 6.86 GB, free: 29.07 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/17.93, allocations: 6.44 MB / 6.866 GB, free: 28.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/17.93, allocations: 0 / 6.866 GB, free: 28.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/17.93, allocations: 322.3 kB / 6.867 GB, free: 28.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003278/17.93, allocations: 1.021 MB / 6.868 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003446/17.94, allocations: 48.94 kB / 6.868 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009366/17.94, allocations: 10.34 MB / 6.878 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/17.94, allocations: 0 / 6.878 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01352/17.96, allocations: 5.528 MB / 6.883 GB, free: 20.56 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00209/17.96, allocations: 0.5954 MB / 6.884 GB, free: 20.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/17.96, allocations: 24.12 kB / 6.884 GB, free: 20.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002442/17.96, allocations: 110.5 kB / 6.884 GB, free: 20.34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004135/17.96, allocations: 143 kB / 6.884 GB, free: 20.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003604/17.96, allocations: 78.98 kB / 6.884 GB, free: 20.34 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002008/17.97, allocations: 0.8923 MB / 6.885 GB, free: 20.23 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008828/17.98, allocations: 1.86 MB / 6.887 GB, free: 19.99 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004246/17.98, allocations: 1.353 MB / 6.888 GB, free: 19.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0112/17.99, allocations: 5.874 MB / 6.894 GB, free: 18.54 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/17.99, allocations: 7.875 kB / 6.894 GB, free: 18.54 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003893/18, allocations: 2.115 MB / 6.896 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/18, allocations: 0.7821 MB / 6.897 GB, free: 18 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/18.01, allocations: 4.779 MB / 6.901 GB, free: 17.14 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003121/18.02, allocations: 2.164 MB / 6.903 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of SimCode: time 1.132e-06/18.02, allocations: 0 / 6.903 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of Templates: time 0.4005/18.42, allocations: 72.28 MB / 6.974 GB, free: 109.8 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestExamplesVariants/HeatingSystem_FixedInitial/HeatingSystem_FixedInitial.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches