Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001987/0.001987, allocations: 183.3 kB / 8.477 MB, free: 1.785 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.302/1.302, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.001039/0.001039, allocations: 94.75 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2235/0.2246, allocations: 52.96 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.3116, allocations: 47.58 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.6231, allocations: 82.39 MB / 445 MB, free: 11.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.6234, allocations: 72.39 kB / 445.1 MB, free: 11.02 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.02001/0.6434, allocations: 8.508 MB / 453.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.6435, allocations: 11.53 kB / 453.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.365e-05/0.6436, allocations: 42.66 kB / 453.7 MB, free: 8.078 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.644, allocations: 336 kB / 454 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.644, allocations: 3.938 kB / 454 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.6441, allocations: 11.53 kB / 454 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002507/0.6443, allocations: 141.8 kB / 454.1 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.6447, allocations: 261.5 kB / 454.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.6447, allocations: 0 / 454.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.6447, allocations: 4 kB / 454.4 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.6447, allocations: 3.844 kB / 454.4 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.646, allocations: 0.7518 MB / 455.2 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.6463, allocations: 189.1 kB / 455.3 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.6465, allocations: 74.55 kB / 455.4 MB, free: 7.133 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.6465, allocations: 3.781 kB / 455.4 MB, free: 7.133 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.6467, allocations: 134.2 kB / 455.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.6467, allocations: 0 / 455.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.000471/0.6471, allocations: 232.1 kB / 455.8 MB, free: 6.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.6472, allocations: 316.3 kB / 456.1 MB, free: 6.602 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.6476, allocations: 355.7 kB / 456.4 MB, free: 6.473 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.6476, allocations: 25.7 kB / 456.5 MB, free: 6.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.318e-05/0.6477, allocations: 144.9 kB / 456.6 MB, free: 6.324 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.959e-05/0.6477, allocations: 75.98 kB / 456.7 MB, free: 6.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.919e-06/0.6477, allocations: 0 / 456.7 MB, free: 6.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.6478, allocations: 352.3 kB / 457 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.971e-05/0.6479, allocations: 59.98 kB / 457.1 MB, free: 5.938 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.6481, allocations: 170.2 kB / 457.2 MB, free: 5.809 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.6482, allocations: 74.3 kB / 457.3 MB, free: 5.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6482, allocations: 3.906 kB / 457.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003901/0.6486, allocations: 268.2 kB / 457.6 MB, free: 5.707 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.6486, allocations: 3.719 kB / 457.6 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.6486, allocations: 11.73 kB / 457.6 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.6488, allocations: 33.94 kB / 457.6 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.649, allocations: 56.91 kB / 457.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.6501, allocations: 1.382 MB / 459.1 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.6503, allocations: 22.53 kB / 459.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.6503, allocations: 10.94 kB / 459.1 MB, free: 4.395 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.6504, allocations: 117.2 kB / 459.2 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.309e-05/0.6505, allocations: 40 kB / 459.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004944/0.651, allocations: 264 kB / 459.5 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.651, allocations: 2.625 kB / 459.5 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.651, allocations: 1.438 kB / 459.5 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003451/0.6514, allocations: 0.5723 MB / 460.1 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007991/0.6522, allocations: 0.6841 MB / 460.8 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.6522, allocations: 1.281 kB / 460.8 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.6524, allocations: 53 kB / 460.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.6524, allocations: 4 kB / 460.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.6525, allocations: 2.562 kB / 460.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.6525, allocations: 1.281 kB / 460.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6525, allocations: 0 / 460.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004446/0.6529, allocations: 395.9 kB / 461.2 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009447/0.6539, allocations: 1.012 MB / 462.2 MB, free: 2.426 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.654, allocations: 152.4 kB / 462.4 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.6541, allocations: 1.25 kB / 462.4 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.6543, allocations: 9.125 kB / 462.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.834e-05/0.6544, allocations: 13.67 kB / 462.4 MB, free: 2.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.6544, allocations: 13.17 kB / 462.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002719/0.6547, allocations: 275.7 kB / 462.7 MB, free: 2.184 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009498/0.6556, allocations: 104.1 kB / 462.8 MB, free: 2.172 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006713/0.6563, allocations: 329.6 kB / 463.1 MB, free: 1.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.6568, allocations: 284.7 kB / 463.4 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6568, allocations: 1.469 kB / 463.4 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.657, allocations: 93.95 kB / 463.5 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.6574, allocations: 72.98 kB / 463.5 MB, free: 1.758 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009962/0.6584, allocations: 0.5573 MB / 464.1 MB, free: 1.453 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.6589, allocations: 0.8449 MB / 464.9 MB, free: 16.69 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6589, allocations: 4 kB / 465 MB, free: 16.68 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)