Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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) 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(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009504/0.0009504, allocations: 179.7 kB / 8.478 MB, free: 1.871 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.141/1.141, allocations: 205.2 MB / 214.1 MB, free: 5.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008051/0.000805, allocations: 82.33 kB / 262.1 MB, free: 5.512 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1524/0.1532, allocations: 52.96 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06508/0.2183, allocations: 47.59 MB / 362.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5069/0.7253, allocations: 320.3 MB / 0.667 GB, free: 71.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001706/0.7255, allocations: 80.31 kB / 0.667 GB, free: 71.09 MB / 426.7 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.8087/1.534, allocations: 271 MB / 0.9317 GB, free: 63.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/1.534, allocations: 11.41 kB / 0.9317 GB, free: 63.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007472/1.535, allocations: 171.8 kB / 0.9319 GB, free: 63.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002301/1.537, allocations: 1.133 MB / 0.933 GB, free: 62.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/1.537, allocations: 137.4 kB / 0.9331 GB, free: 62.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/1.538, allocations: 60.81 kB / 0.9332 GB, free: 62.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002361/1.54, allocations: 1.632 MB / 0.9348 GB, free: 62.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002301/1.542, allocations: 1.632 MB / 0.9363 GB, free: 62.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/1.542, allocations: 3.094 kB / 0.9364 GB, free: 62.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/1.543, allocations: 7.469 kB / 0.9364 GB, free: 62.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/1.543, allocations: 122.2 kB / 0.9365 GB, free: 62.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009766/1.552, allocations: 6.157 MB / 0.9425 GB, free: 60.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/1.554, allocations: 0.8967 MB / 0.9434 GB, free: 60.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008045/1.554, allocations: 0.6904 MB / 0.944 GB, free: 60.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004689/1.559, allocations: 4.166 MB / 0.9481 GB, free: 58.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/1.559, allocations: 45.97 kB / 0.9482 GB, free: 58.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 2.144e-06/1.559, allocations: 0 / 0.9482 GB, free: 58.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01136/1.57, allocations: 4.269 MB / 0.9523 GB, free: 57.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/1.571, allocations: 143 kB / 0.9525 GB, free: 57.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009289/1.571, allocations: 0.8241 MB / 0.9533 GB, free: 57.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.572e-05/1.572, allocations: 25.7 kB / 0.9533 GB, free: 57.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/1.572, allocations: 469 kB / 0.9537 GB, free: 56.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00025/1.572, allocations: 376.1 kB / 0.9541 GB, free: 56.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.147e-05/1.572, allocations: 0 / 0.9541 GB, free: 56.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/1.572, allocations: 363 kB / 0.9544 GB, free: 56.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008335/1.573, allocations: 0.6241 MB / 0.955 GB, free: 56.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009372/1.574, allocations: 0.9424 MB / 0.956 GB, free: 56.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/1.584, allocations: 2.467 MB / 0.9584 GB, free: 56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/1.584, allocations: 6.344 kB / 0.9584 GB, free: 56 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01223/1.597, allocations: 3.729 MB / 0.962 GB, free: 55.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005255/1.597, allocations: 3.484 MB / 0.9654 GB, free: 52.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/1.597, allocations: 11.34 kB / 0.9654 GB, free: 52.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006247/1.603, allocations: 1.109 MB / 0.9665 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.605, allocations: 289 kB / 0.9668 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/1.608, allocations: 1.962 MB / 0.9687 GB, free: 51.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/1.61, allocations: 64.03 kB / 0.9688 GB, free: 51.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/1.61, allocations: 70.53 kB / 0.9688 GB, free: 51.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/1.61, allocations: 7.375 kB / 0.9688 GB, free: 51.68 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01155/1.621, allocations: 3.426 MB / 0.9722 GB, free: 51.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/1.621, allocations: 9.531 kB / 0.9722 GB, free: 51.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006139/1.627, allocations: 1.045 MB / 0.9732 GB, free: 51.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/1.629, allocations: 306.8 kB / 0.9735 GB, free: 51.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/1.631, allocations: 1.702 MB / 0.9752 GB, free: 51.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/1.633, allocations: 65.11 kB / 0.9752 GB, free: 51.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/1.633, allocations: 69.16 kB / 0.9753 GB, free: 51.08 MB / 426.7 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.0003152/1.633, allocations: 139 kB / 0.9754 GB, free: 50.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002634/1.633, allocations: 131.4 kB / 0.9756 GB, free: 50.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005329/1.639, allocations: 2.275 MB / 0.9778 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/1.639, allocations: 12.62 kB / 0.9778 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.639, allocations: 2.938 kB / 0.9778 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/1.639, allocations: 7.547 kB / 0.9778 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006322/1.645, allocations: 3.547 MB / 0.9813 GB, free: 50.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.645, allocations: 0 / 0.9813 GB, free: 50.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009103/1.646, allocations: 201.1 kB / 0.9815 GB, free: 50.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002805/1.649, allocations: 0.8171 MB / 0.9823 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/1.649, allocations: 21.47 kB / 0.9823 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003428/1.652, allocations: 1.953 MB / 0.9842 GB, free: 49.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.653, allocations: 0 / 0.9842 GB, free: 49.89 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005317/1.658, allocations: 2.993 MB / 0.9871 GB, free: 49.64 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006369/1.664, allocations: 4.301 MB / 0.9913 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/1.665, allocations: 380.5 kB / 0.9917 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/1.665, allocations: 3.906 kB / 0.9917 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/1.666, allocations: 64.88 kB / 0.9917 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/1.667, allocations: 92.92 kB / 0.9918 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/1.667, allocations: 53.64 kB / 0.9919 GB, free: 48.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007448/1.668, allocations: 0.6052 MB / 0.9925 GB, free: 48.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004864/1.672, allocations: 1.355 MB / 0.9938 GB, free: 48.52 MB / 426.7 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.002426/1.675, allocations: 1.057 MB / 0.9948 GB, free: 48.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004687/1.68, allocations: 2.539 MB / 0.9973 GB, free: 48.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.68, allocations: 0 / 0.9973 GB, free: 48.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/1.681, allocations: 0.811 MB / 0.9981 GB, free: 48.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/1.683, allocations: 0.5014 MB / 0.9986 GB, free: 48.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/1.689, allocations: 2.47 MB / 1.001 GB, free: 47.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/1.69, allocations: 1.492 MB / 1.002 GB, free: 46.93 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/1.69, allocations: 0 / 1.002 GB, free: 46.93 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)