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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) [: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.001511/0.001511, allocations: 183.1 kB / 8.526 MB, free: 1.836 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.148/1.148, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.0009271/0.0009271, allocations: 89.55 kB / 281.2 MB, free: 5.438 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.174/0.174, allocations: 44.14 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1741/0.3482, allocations: 68.02 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.4372, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.275/4.713, allocations: 3.17 GB / 3.664 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/4.713, allocations: 82.39 kB / 3.664 GB, free: 13.61 MB / 0.5261 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 7.796/12.51, allocations: 3.104 GB / 6.768 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/12.51, allocations: 17.19 kB / 6.768 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/12.51, allocations: 316.5 kB / 6.768 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005533/12.52, allocations: 2.097 MB / 6.77 GB, free: 8.824 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/12.52, allocations: 151.2 kB / 6.77 GB, free: 8.664 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008348/12.52, allocations: 115.9 kB / 6.77 GB, free: 8.551 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005293/12.52, allocations: 2.948 MB / 6.773 GB, free: 5.598 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004924/12.53, allocations: 3.095 MB / 6.776 GB, free: 2.324 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.889e-05/12.53, allocations: 7.938 kB / 6.776 GB, free: 2.316 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003198/12.53, allocations: 4 kB / 6.776 GB, free: 2.312 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/12.53, allocations: 211.7 kB / 6.777 GB, free: 2.105 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2235/12.75, allocations: 12.04 MB / 6.788 GB, free: 95.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/12.75, allocations: 1.368 MB / 6.79 GB, free: 95.12 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/12.75, allocations: 1.353 MB / 6.791 GB, free: 95.11 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007901/12.76, allocations: 6.003 MB / 6.797 GB, free: 92.23 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/12.76, allocations: 52.81 kB / 6.797 GB, free: 92.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 4.749e-06/12.76, allocations: 0 / 6.797 GB, free: 92.19 MB / 0.5573 GB Notification: Performance of matching and sorting (n=199): time 0.02515/12.79, allocations: 8.828 MB / 6.806 GB, free: 91.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/12.79, allocations: 131.9 kB / 6.806 GB, free: 91.25 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/12.79, allocations: 1.215 MB / 6.807 GB, free: 91.08 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002615/12.79, allocations: 25.7 kB / 6.807 GB, free: 91.05 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/12.79, allocations: 0.7986 MB / 6.808 GB, free: 90.67 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006113/12.79, allocations: 0.6547 MB / 6.808 GB, free: 90.24 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/12.79, allocations: 6.812 kB / 6.808 GB, free: 90.24 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001293/12.79, allocations: 402.4 kB / 6.809 GB, free: 89.93 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/12.79, allocations: 1.214 MB / 6.81 GB, free: 89.93 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/12.8, allocations: 1.708 MB / 6.812 GB, free: 89.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006267/12.8, allocations: 2.5 MB / 6.814 GB, free: 89.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/12.8, allocations: 6.656 kB / 6.814 GB, free: 89.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01129/12.81, allocations: 4.838 MB / 6.819 GB, free: 89.1 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009924/12.81, allocations: 5.769 MB / 6.824 GB, free: 83.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/12.81, allocations: 15.06 kB / 6.824 GB, free: 83.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002953/12.82, allocations: 0.9741 MB / 6.825 GB, free: 83.15 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/12.82, allocations: 469 kB / 6.826 GB, free: 83.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009839/12.83, allocations: 10.47 MB / 6.836 GB, free: 75.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/12.83, allocations: 142 kB / 6.836 GB, free: 75.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005603/12.83, allocations: 116.7 kB / 6.836 GB, free: 75.53 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.865e-06/12.83, allocations: 3.938 kB / 6.836 GB, free: 75.53 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01111/12.84, allocations: 4.273 MB / 6.84 GB, free: 75.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.663e-05/12.84, allocations: 17.25 kB / 6.84 GB, free: 75.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/12.85, allocations: 0.8148 MB / 6.841 GB, free: 75.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002289/12.85, allocations: 498.3 kB / 6.842 GB, free: 75.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008046/12.86, allocations: 10.03 MB / 6.851 GB, free: 67.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/12.86, allocations: 139 kB / 6.852 GB, free: 67.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004387/12.86, allocations: 103 kB / 6.852 GB, free: 67.73 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.0009018/12.86, allocations: 168.5 kB / 6.852 GB, free: 67.61 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007724/12.86, allocations: 203.6 kB / 6.852 GB, free: 67.51 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/12.87, allocations: 4.393 MB / 6.856 GB, free: 67.32 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.25e-05/12.87, allocations: 25.53 kB / 6.856 GB, free: 67.32 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/12.87, allocations: 2.906 kB / 6.856 GB, free: 67.32 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007352/12.88, allocations: 3.657 MB / 6.86 GB, free: 66.86 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/12.89, allocations: 6.435 MB / 6.866 GB, free: 66.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/12.89, allocations: 0 / 6.866 GB, free: 66.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/12.89, allocations: 317.6 kB / 6.867 GB, free: 66.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003143/12.9, allocations: 1.024 MB / 6.868 GB, free: 66.37 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/12.9, allocations: 51.39 kB / 6.868 GB, free: 66.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008725/12.91, allocations: 10.33 MB / 6.878 GB, free: 58.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/12.91, allocations: 6.75 kB / 6.878 GB, free: 58.73 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01149/12.92, allocations: 5.535 MB / 6.883 GB, free: 58.35 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0182/12.94, allocations: 11.4 MB / 6.894 GB, free: 57.54 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/12.94, allocations: 0.5922 MB / 6.895 GB, free: 57.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006912/12.94, allocations: 17.61 kB / 6.895 GB, free: 57.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/12.94, allocations: 109.7 kB / 6.895 GB, free: 57.33 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/12.94, allocations: 141.8 kB / 6.895 GB, free: 57.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/12.94, allocations: 86.88 kB / 6.895 GB, free: 57.33 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001507/12.94, allocations: 0.8919 MB / 6.896 GB, free: 57.22 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009452/12.95, allocations: 2.153 MB / 6.898 GB, free: 57.14 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.004053/12.96, allocations: 1.346 MB / 6.899 GB, free: 56.94 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009941/12.97, allocations: 5.877 MB / 6.905 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/12.97, allocations: 3.969 kB / 6.905 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003531/12.97, allocations: 2.114 MB / 6.907 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/12.97, allocations: 0.7955 MB / 6.908 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/12.99, allocations: 4.816 MB / 6.913 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/12.99, allocations: 2.203 MB / 6.915 GB, free: 53.74 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/12.99, allocations: 0 / 6.915 GB, free: 53.74 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe 2>&1)