Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic",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.003274/0.003274, allocations: 184.8 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7372/0.7372, allocations: 133.5 MB / 141.4 MB, free: 15.76 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.633/1.633, allocations: 221.3 MB / 395 MB, free: 10.2 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 87.86 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4611/0.4623, allocations: 88.43 MB / 0.5529 GB, free: 88.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.6392, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.198/1.837, allocations: 363 MB / 0.9878 GB, free: 263.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/1.838, allocations: 86.8 kB / 0.9879 GB, free: 263.4 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 5.549/7.387, allocations: 1.538 GB / 2.526 GB, free: 41.62 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.715e-05/7.387, allocations: 8 kB / 2.526 GB, free: 41.62 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003736/7.39, allocations: 0.6684 MB / 2.527 GB, free: 40.95 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/7.395, allocations: 1.467 MB / 2.528 GB, free: 39.47 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/7.395, allocations: 32 kB / 2.528 GB, free: 39.44 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/7.395, allocations: 68 kB / 2.528 GB, free: 39.37 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001717/7.397, allocations: 0.828 MB / 2.529 GB, free: 38.54 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/7.399, allocations: 1.069 MB / 2.53 GB, free: 37.39 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/7.399, allocations: 3.391 kB / 2.53 GB, free: 37.39 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.521e-05/7.399, allocations: 4 kB / 2.53 GB, free: 37.39 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.42e-05/7.399, allocations: 24 kB / 2.53 GB, free: 37.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0111/7.41, allocations: 6.685 MB / 2.537 GB, free: 30.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/7.411, allocations: 0.8446 MB / 2.538 GB, free: 29.42 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/7.412, allocations: 0.4921 MB / 2.538 GB, free: 28.93 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001597/7.414, allocations: 2.264 MB / 2.54 GB, free: 26.18 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008057/7.415, allocations: 0.6348 MB / 2.541 GB, free: 25.52 MB / 0.698 GB Notification: Performance of pre-optimization done (n=97): time 4.178e-06/7.415, allocations: 0 / 2.541 GB, free: 25.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=97): time 0.003324/7.418, allocations: 1.308 MB / 2.542 GB, free: 24.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/7.418, allocations: 145.2 kB / 2.542 GB, free: 24.02 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/7.419, allocations: 0.9023 MB / 2.543 GB, free: 23.11 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001043/7.419, allocations: 29.7 kB / 2.543 GB, free: 23.08 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000309/7.42, allocations: 457.6 kB / 2.544 GB, free: 22.62 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/7.42, allocations: 317.8 kB / 2.544 GB, free: 22.31 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.763e-05/7.42, allocations: 0 / 2.544 GB, free: 22.31 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001041/7.42, allocations: 345.9 kB / 2.544 GB, free: 21.97 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005612/7.421, allocations: 414.2 kB / 2.545 GB, free: 21.57 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007006/7.421, allocations: 0.6717 MB / 2.545 GB, free: 20.79 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/7.424, allocations: 0.6956 MB / 2.546 GB, free: 20.09 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/7.424, allocations: 8 kB / 2.546 GB, free: 20.08 MB / 0.698 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.003376/7.427, allocations: 1.457 MB / 2.548 GB, free: 18.62 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005055/7.427, allocations: 2.137 MB / 2.55 GB, free: 16.37 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/7.427, allocations: 12 kB / 2.55 GB, free: 16.36 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/7.427, allocations: 11.94 kB / 2.55 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/7.429, allocations: 303.6 kB / 2.55 GB, free: 16.05 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/7.429, allocations: 11.94 kB / 2.55 GB, free: 16.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/7.431, allocations: 234.8 kB / 2.55 GB, free: 15.81 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/7.431, allocations: 63.97 kB / 2.55 GB, free: 15.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/7.431, allocations: 6.625 kB / 2.55 GB, free: 15.74 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002876/7.434, allocations: 1.266 MB / 2.551 GB, free: 14.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/7.434, allocations: 4 kB / 2.551 GB, free: 14.46 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/7.434, allocations: 12 kB / 2.551 GB, free: 14.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/7.435, allocations: 300.1 kB / 2.552 GB, free: 14.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/7.435, allocations: 19.92 kB / 2.552 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/7.437, allocations: 211.1 kB / 2.552 GB, free: 13.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/7.437, allocations: 63.97 kB / 2.552 GB, free: 13.87 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,$PRE.TSetHeat.nextEvent,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,$PRE.TSetCool.nextEvent,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,$PRE.TSetCoolHeat.nextEvent,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003735/7.438, allocations: 234.4 kB / 2.552 GB, free: 13.62 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/7.438, allocations: 154.1 kB / 2.552 GB, free: 13.46 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004666/7.442, allocations: 2.046 MB / 2.554 GB, free: 11.42 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/7.443, allocations: 19.98 kB / 2.554 GB, free: 11.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/7.443, allocations: 3.906 kB / 2.554 GB, free: 11.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/7.443, allocations: 3.984 kB / 2.554 GB, free: 11.39 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006538/7.449, allocations: 3.126 MB / 2.558 GB, free: 8.234 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/7.449, allocations: 0 / 2.558 GB, free: 8.234 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/7.45, allocations: 239.8 kB / 2.558 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/7.45, allocations: 4 kB / 2.558 GB, free: 7.996 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/7.45, allocations: 39.97 kB / 2.558 GB, free: 7.957 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/7.451, allocations: 7.938 kB / 2.558 GB, free: 7.949 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/7.451, allocations: 3.938 kB / 2.558 GB, free: 7.945 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004272/7.455, allocations: 2.596 MB / 2.56 GB, free: 5.273 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005556/7.46, allocations: 3.834 MB / 2.564 GB, free: 1.363 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/7.461, allocations: 400 kB / 2.564 GB, free: 0.9531 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/7.462, allocations: 12 kB / 2.564 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/7.463, allocations: 174.5 kB / 2.565 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/7.463, allocations: 68.67 kB / 2.565 GB, free: 0.707 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/7.463, allocations: 54.31 kB / 2.565 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.4855/7.949, allocations: 0.6815 MB / 2.565 GB, free: 139.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.006163/7.955, allocations: 1.136 MB / 2.567 GB, free: 139.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (heaHigPow.outCon.T,heaHigPowOut.T,cooLimPowOut.T,cooLimPow.outCon.T,heaCooUnl.outCon.T,heaCooUnlOut.T,heaHigPowIn.T,cooLimPowIn.T,heaCooUnlIn.T) * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 18 (TSetCoolHeat.nextEvent,TSetCoolHeat.last,TSetCoolHeat.nextEventScaled,TSetCoolHeat.b,TSetCoolHeat.a,$whenCondition3,TSetCool.nextEvent,TSetCool.last,TSetCool.nextEventScaled,TSetCool.b,TSetCool.a,$whenCondition2,TSetHeat.nextEvent,TSetHeat.last,TSetHeat.nextEventScaled,TSetHeat.b,TSetHeat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 19 * When equations: 0 * 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.00232/7.957, allocations: 0.9742 MB / 2.567 GB, free: 139.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003107/7.961, allocations: 1.933 MB / 2.569 GB, free: 139.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/7.961, allocations: 0 / 2.569 GB, free: 139.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/7.962, allocations: 0.8061 MB / 2.57 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/7.965, allocations: 0.5017 MB / 2.571 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/7.971, allocations: 2.703 MB / 2.573 GB, free: 138.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/7.973, allocations: 1.508 MB / 2.575 GB, free: 138.1 MB / 0.698 GB Notification: Performance of SimCode: time 1.853e-06/7.973, allocations: 0 / 2.575 GB, free: 138.1 MB / 0.698 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe 2>&1)