Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 190.4 kB / 7.804 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001151/0.001151, allocations: 91.67 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2584/0.2584, allocations: 43.48 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2672/0.5257, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4388/0.9645, allocations: 58.84 MB / 476.6 MB, free: 5.305 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.192/9.156, allocations: 3.163 GB / 3.629 GB, free: 93.57 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/9.156, allocations: 83.45 kB / 3.629 GB, free: 93.49 MB / 0.4948 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 11.4/20.56, allocations: 3.093 GB / 6.722 GB, free: 55.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/20.56, allocations: 8.938 kB / 6.722 GB, free: 55.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0029/20.56, allocations: 314.3 kB / 6.722 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009602/20.57, allocations: 2.099 MB / 6.724 GB, free: 54.83 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/20.57, allocations: 150.6 kB / 6.724 GB, free: 54.76 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001817/20.57, allocations: 121.9 kB / 6.724 GB, free: 54.76 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008551/20.58, allocations: 2.94 MB / 6.727 GB, free: 54.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009856/20.59, allocations: 3.1 MB / 6.73 GB, free: 54.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/20.59, allocations: 8.375 kB / 6.73 GB, free: 54.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009626/20.59, allocations: 6.984 kB / 6.73 GB, free: 54.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002702/20.59, allocations: 216.8 kB / 6.73 GB, free: 54.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02972/20.62, allocations: 12.04 MB / 6.742 GB, free: 49.34 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/20.62, allocations: 1.362 MB / 6.743 GB, free: 49.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002466/20.63, allocations: 1.352 MB / 6.745 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01154/20.64, allocations: 6.011 MB / 6.751 GB, free: 46.36 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/20.64, allocations: 59.48 kB / 6.751 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=173): time 5.381e-06/20.64, allocations: 0 / 6.751 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199): time 0.02925/20.67, allocations: 8.837 MB / 6.759 GB, free: 45.39 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/20.67, allocations: 121.9 kB / 6.759 GB, free: 45.27 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/20.67, allocations: 1.213 MB / 6.761 GB, free: 45.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004694/20.67, allocations: 32.73 kB / 6.761 GB, free: 45.07 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009189/20.67, allocations: 0.7936 MB / 6.761 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00104/20.67, allocations: 0.6666 MB / 6.762 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/20.67, allocations: 3.812 kB / 6.762 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002585/20.67, allocations: 392.6 kB / 6.762 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/20.68, allocations: 1.215 MB / 6.764 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/20.68, allocations: 1.708 MB / 6.765 GB, free: 43.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01591/20.69, allocations: 3.944 MB / 6.769 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.891e-05/20.69, allocations: 3.031 kB / 6.769 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.0242/20.72, allocations: 6.259 MB / 6.775 GB, free: 43.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00169/20.72, allocations: 5.773 MB / 6.781 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.187e-05/20.72, allocations: 15.62 kB / 6.781 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003279/20.72, allocations: 0.9806 MB / 6.782 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/20.73, allocations: 468.3 kB / 6.782 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/20.74, allocations: 10.49 MB / 6.792 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/20.74, allocations: 145.5 kB / 6.793 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009357/20.74, allocations: 108.5 kB / 6.793 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/20.74, allocations: 6.281 kB / 6.793 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02225/20.76, allocations: 5.702 MB / 6.798 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.391e-05/20.76, allocations: 15.16 kB / 6.798 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/20.77, allocations: 0.8139 MB / 6.799 GB, free: 29.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002793/20.77, allocations: 499.5 kB / 6.8 GB, free: 29.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009034/20.78, allocations: 10.03 MB / 6.809 GB, free: 21.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002974/20.78, allocations: 137.9 kB / 6.81 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006825/20.78, allocations: 103.4 kB / 6.81 GB, free: 21.61 MB / 0.5417 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.0013/20.78, allocations: 164.5 kB / 6.81 GB, free: 21.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009611/20.78, allocations: 203.1 kB / 6.81 GB, free: 21.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/20.8, allocations: 4.387 MB / 6.814 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.57e-05/20.8, allocations: 28.34 kB / 6.814 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-05/20.8, allocations: 3.031 kB / 6.814 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008421/20.81, allocations: 3.661 MB / 6.818 GB, free: 20.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01576/20.82, allocations: 6.443 MB / 6.824 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/20.82, allocations: 0 / 6.824 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/20.82, allocations: 317.9 kB / 6.824 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003455/20.83, allocations: 1.028 MB / 6.825 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002899/20.83, allocations: 46.48 kB / 6.826 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/20.84, allocations: 10.35 MB / 6.836 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.8e-06/20.84, allocations: 0 / 6.836 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01298/20.85, allocations: 5.534 MB / 6.841 GB, free: 26.05 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02372/20.87, allocations: 11.4 MB / 6.852 GB, free: 21.56 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/20.88, allocations: 0.5878 MB / 6.853 GB, free: 21.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/20.88, allocations: 27.5 kB / 6.853 GB, free: 21.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002607/20.88, allocations: 111.3 kB / 6.853 GB, free: 21.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/20.88, allocations: 139.7 kB / 6.853 GB, free: 21.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003585/20.88, allocations: 85.36 kB / 6.853 GB, free: 21.16 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002667/20.88, allocations: 0.8908 MB / 6.854 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01329/20.9, allocations: 2.151 MB / 6.856 GB, free: 20.2 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.005697/20.9, allocations: 1.347 MB / 6.857 GB, free: 19.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01243/20.92, allocations: 5.872 MB / 6.863 GB, free: 17.26 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/20.92, allocations: 3.938 kB / 6.863 GB, free: 17.26 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004872/20.92, allocations: 2.119 MB / 6.865 GB, free: 16.24 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005495/20.93, allocations: 0.7901 MB / 6.866 GB, free: 16.06 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/20.94, allocations: 4.829 MB / 6.871 GB, free: 13.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003693/20.94, allocations: 2.201 MB / 6.873 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of SimCode: time 1.553e-06/20.94, allocations: 0 / 6.873 GB, free: 12.02 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.pipe 2>&1)