Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.001348/0.001348, allocations: 181.2 kB / 8.131 MB, free: 2.684 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.165/1.165, allocations: 221.4 MB / 229.9 MB, free: 7.664 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009903/0.0009903, allocations: 99.92 kB / 280.8 MB, free: 5.141 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.09131/0.09233, allocations: 55.82 MB / 336.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.2824, allocations: 50.4 MB / 387 MB, free: 40.39 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5152/0.7976, allocations: 320.9 MB / 0.6913 GB, free: 158.8 MB / 446.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001641/0.7978, allocations: 89.64 kB / 0.6914 GB, free: 158.8 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.7024/1.5, allocations: 275.9 MB / 0.9609 GB, free: 54.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/1.5, allocations: 12 kB / 0.9609 GB, free: 54.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006881/1.501, allocations: 178 kB / 0.9611 GB, free: 54.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002165/1.503, allocations: 1.131 MB / 0.9622 GB, free: 53.24 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/1.503, allocations: 139.1 kB / 0.9623 GB, free: 53.08 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/1.503, allocations: 56 kB / 0.9624 GB, free: 53.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002219/1.506, allocations: 1.637 MB / 0.964 GB, free: 51.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/1.508, allocations: 1.635 MB / 0.9656 GB, free: 49.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/1.508, allocations: 7.906 kB / 0.9656 GB, free: 49.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/1.508, allocations: 7.594 kB / 0.9656 GB, free: 49.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.209e-05/1.508, allocations: 121.9 kB / 0.9657 GB, free: 49.56 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0089/1.517, allocations: 6.178 MB / 0.9717 GB, free: 43.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009631/1.518, allocations: 0.8854 MB / 0.9726 GB, free: 42.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007455/1.519, allocations: 0.6922 MB / 0.9733 GB, free: 41.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004243/1.523, allocations: 4.169 MB / 0.9773 GB, free: 37.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/1.523, allocations: 51.28 kB / 0.9774 GB, free: 37 MB / 446.1 MB Notification: Performance of pre-optimization done (n=97): time 2.144e-06/1.523, allocations: 0 / 0.9774 GB, free: 37 MB / 446.1 MB Notification: Performance of matching and sorting (n=112): time 0.01103/1.534, allocations: 4.27 MB / 0.9816 GB, free: 32.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/1.534, allocations: 141.5 kB / 0.9817 GB, free: 32.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008625/1.535, allocations: 0.816 MB / 0.9825 GB, free: 31.69 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-05/1.535, allocations: 29.7 kB / 0.9825 GB, free: 31.65 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/1.535, allocations: 478.6 kB / 0.983 GB, free: 31.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/1.536, allocations: 374.5 kB / 0.9833 GB, free: 30.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/1.536, allocations: 0 / 0.9833 GB, free: 30.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.486e-05/1.536, allocations: 361.9 kB / 0.9837 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008421/1.537, allocations: 0.6209 MB / 0.9843 GB, free: 29.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009038/1.537, allocations: 0.951 MB / 0.9852 GB, free: 28.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003916/1.541, allocations: 1.458 MB / 0.9866 GB, free: 27.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/1.541, allocations: 4 kB / 0.9866 GB, free: 27.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005671/1.547, allocations: 2.711 MB / 0.9893 GB, free: 24.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004258/1.548, allocations: 3.481 MB / 0.9927 GB, free: 20.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/1.548, allocations: 12 kB / 0.9927 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006378/1.554, allocations: 1.105 MB / 0.9938 GB, free: 19.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/1.555, allocations: 296 kB / 0.9941 GB, free: 19.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003524/1.559, allocations: 1.953 MB / 0.996 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/1.56, allocations: 59.8 kB / 0.996 GB, free: 17.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/1.56, allocations: 71.95 kB / 0.9961 GB, free: 17.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/1.56, allocations: 6.656 kB / 0.9961 GB, free: 17.29 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005104/1.565, allocations: 2.415 MB / 0.9985 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/1.565, allocations: 8 kB / 0.9985 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006262/1.571, allocations: 1.044 MB / 0.9995 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/1.573, allocations: 303.7 kB / 0.9998 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/1.575, allocations: 1.708 MB / 1.001 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/1.577, allocations: 55.86 kB / 1.001 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/1.577, allocations: 71.95 kB / 1.002 GB, free: 11.67 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002798/1.577, allocations: 148.5 kB / 1.002 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/1.577, allocations: 130.4 kB / 1.002 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005266/1.582, allocations: 2.262 MB / 1.004 GB, free: 9.121 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/1.582, allocations: 12 kB / 1.004 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/1.583, allocations: 0 / 1.004 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/1.583, allocations: 11.97 kB / 1.004 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006161/1.589, allocations: 3.53 MB / 1.008 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.589, allocations: 0 / 1.008 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009352/1.59, allocations: 195.7 kB / 1.008 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002896/1.593, allocations: 0.8197 MB / 1.008 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.53e-05/1.593, allocations: 23.91 kB / 1.009 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003332/1.596, allocations: 1.962 MB / 1.01 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.596, allocations: 0 / 1.01 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1288/1.725, allocations: 2.984 MB / 1.013 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006534/1.731, allocations: 4.31 MB / 1.018 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005961/1.732, allocations: 374.5 kB / 1.018 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/1.732, allocations: 3.594 kB / 1.018 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/1.733, allocations: 65.75 kB / 1.018 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/1.734, allocations: 96.44 kB / 1.018 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/1.734, allocations: 56.42 kB / 1.018 GB, free: 100.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 0.0006441/1.734, allocations: 0.5965 MB / 1.019 GB, free: 100.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004182/1.739, allocations: 1.363 MB / 1.02 GB, free: 100.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.001894/1.74, allocations: 1.052 MB / 1.021 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/1.745, allocations: 2.544 MB / 1.024 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.745, allocations: 0 / 1.024 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/1.746, allocations: 0.812 MB / 1.024 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/1.749, allocations: 0.4987 MB / 1.025 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/1.753, allocations: 2.466 MB / 1.027 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/1.754, allocations: 1.496 MB / 1.029 GB, free: 99.39 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/1.754, allocations: 0 / 1.029 GB, free: 99.39 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)