Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Movers_Examples_ClosedLoop_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Movers_Examples_ClosedLoop_y",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/BuildingSystems 2.0.0-master/package.mo): time 0.6875/0.6875, allocations: 141.8 MB / 149.1 MB, free: 4.535 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009888/0.0009888, allocations: 185 kB / 181.9 MB, free: 184 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 221.3 MB / 436 MB, free: 9.344 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.0009619, allocations: 96.11 kB / 0.507 GB, free: 24.29 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001773/0.001773, allocations: 289.5 kB / 0.5884 GB, free: 12.38 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1724/0.1742, allocations: 89.63 MB / 0.676 GB, free: 2.66 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.5525, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.236/3.788, allocations: 1.908 GB / 2.664 GB, free: 171.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/3.789, allocations: 96.08 kB / 2.664 GB, free: 171.2 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 2.547/6.336, allocations: 0.8119 GB / 3.476 GB, free: 98.12 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/6.336, allocations: 8.062 kB / 3.476 GB, free: 98.12 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003657/6.34, allocations: 462.3 kB / 3.477 GB, free: 98.03 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005135/6.345, allocations: 1.838 MB / 3.479 GB, free: 97.68 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.746e-05/6.345, allocations: 29.47 kB / 3.479 GB, free: 97.68 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003875/6.345, allocations: 72.92 kB / 3.479 GB, free: 97.68 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002032/6.348, allocations: 0.8544 MB / 3.48 GB, free: 97.67 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/6.35, allocations: 1.015 MB / 3.48 GB, free: 97.53 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/6.35, allocations: 7.062 kB / 3.481 GB, free: 97.53 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/6.35, allocations: 0 / 3.481 GB, free: 97.53 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/6.35, allocations: 36.53 kB / 3.481 GB, free: 97.53 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007496/6.357, allocations: 5.016 MB / 3.485 GB, free: 95.25 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/6.358, allocations: 0.7617 MB / 3.486 GB, free: 95.23 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/6.359, allocations: 431.8 kB / 3.487 GB, free: 95.21 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002326/6.359, allocations: 194.8 kB / 3.487 GB, free: 95.03 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005865/6.36, allocations: 444.5 kB / 3.487 GB, free: 94.98 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=72): time 3.226e-06/6.36, allocations: 2.344 kB / 3.487 GB, free: 94.98 MB / 0.6982 GB Notification: Performance of matching and sorting (n=72): time 0.002544/6.362, allocations: 0.9129 MB / 3.488 GB, free: 94.85 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/6.363, allocations: 118.8 kB / 3.488 GB, free: 94.73 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/6.364, allocations: 0.8796 MB / 3.489 GB, free: 94.58 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001019/6.364, allocations: 29.27 kB / 3.489 GB, free: 94.55 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/6.364, allocations: 443.9 kB / 3.49 GB, free: 94.32 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/6.364, allocations: 237.9 kB / 3.49 GB, free: 94.16 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/6.364, allocations: 6.219 kB / 3.49 GB, free: 94.16 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.141e-05/6.364, allocations: 339 kB / 3.49 GB, free: 93.85 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/6.365, allocations: 313.8 kB / 3.49 GB, free: 93.85 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/6.365, allocations: 0.5656 MB / 3.491 GB, free: 93.54 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007862/6.366, allocations: 414.2 kB / 3.491 GB, free: 93.54 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/6.366, allocations: 0 / 3.491 GB, free: 93.54 MB / 0.6982 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001724/6.368, allocations: 1.038 MB / 3.492 GB, free: 93.41 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004015/6.368, allocations: 2.03 MB / 3.494 GB, free: 91.32 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/6.368, allocations: 6.438 kB / 3.494 GB, free: 91.32 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003585/6.369, allocations: 98.39 kB / 3.494 GB, free: 91.31 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009912/6.37, allocations: 216.8 kB / 3.495 GB, free: 91.31 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007129/6.371, allocations: 1.297 MB / 3.496 GB, free: 90.21 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/6.372, allocations: 132.2 kB / 3.496 GB, free: 90.16 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.994e-05/6.372, allocations: 51.94 kB / 3.496 GB, free: 90.16 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.564e-06/6.372, allocations: 3.875 kB / 3.496 GB, free: 90.16 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001703/6.374, allocations: 0.8384 MB / 3.497 GB, free: 90.14 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/6.374, allocations: 3.469 kB / 3.497 GB, free: 90.14 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004275/6.374, allocations: 102.5 kB / 3.497 GB, free: 90.13 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008007/6.375, allocations: 210 kB / 3.497 GB, free: 90.13 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/6.379, allocations: 2.625 MB / 3.5 GB, free: 88.49 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/6.38, allocations: 115.7 kB / 3.5 GB, free: 88.46 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/6.381, allocations: 43.84 kB / 3.5 GB, free: 88.46 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.y.T_start,y.T_start,$PRE.y.count,y.count,conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003282/6.381, allocations: 137.9 kB / 3.5 GB, free: 88.34 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/6.381, allocations: 128.9 kB / 3.5 GB, free: 88.27 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/6.383, allocations: 0.8918 MB / 3.501 GB, free: 88.19 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/6.383, allocations: 8.656 kB / 3.501 GB, free: 88.19 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/6.383, allocations: 3.906 kB / 3.501 GB, free: 88.18 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001203/6.384, allocations: 0.7833 MB / 3.502 GB, free: 88 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003945/6.388, allocations: 2.041 MB / 3.504 GB, free: 87.64 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/6.388, allocations: 0 / 3.504 GB, free: 87.64 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009572/6.389, allocations: 174.1 kB / 3.504 GB, free: 87.64 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001738/6.39, allocations: 64.02 kB / 3.504 GB, free: 87.64 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.769e-05/6.39, allocations: 9.469 kB / 3.504 GB, free: 87.64 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005199/6.39, allocations: 1.215 MB / 3.505 GB, free: 86.53 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/6.39, allocations: 0 / 3.505 GB, free: 86.53 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00209/6.392, allocations: 1.412 MB / 3.507 GB, free: 86.19 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003006/6.395, allocations: 2.329 MB / 3.509 GB, free: 85.46 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006157/6.396, allocations: 284.6 kB / 3.509 GB, free: 85.25 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/6.396, allocations: 11.36 kB / 3.509 GB, free: 85.24 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000936/6.397, allocations: 82.38 kB / 3.509 GB, free: 85.23 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/6.397, allocations: 47.03 kB / 3.509 GB, free: 85.23 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-05/6.397, allocations: 35.2 kB / 3.509 GB, free: 85.22 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001092/6.398, allocations: 0.6662 MB / 3.51 GB, free: 84.92 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.005573/6.404, allocations: 1.585 MB / 3.512 GB, free: 84.02 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (fan.vol.dynBal.U,fan.vol.dynBal.m,fan.vol.dynBal.mXi[1],fan.filter.s[1],fan.filter.s[2],conPID.I.y) * Number of discrete variables: 3 ($whenCondition1,y.T_start,y.count) * Number of discrete states: 1 (y.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004083/6.408, allocations: 2.872 MB / 3.514 GB, free: 83.07 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00262/6.411, allocations: 1.449 MB / 3.516 GB, free: 82.49 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/6.411, allocations: 3.281 kB / 3.516 GB, free: 82.49 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0006032/6.411, allocations: 385.9 kB / 3.516 GB, free: 82.37 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/6.414, allocations: 0.5444 MB / 3.517 GB, free: 82.26 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/6.418, allocations: 2.042 MB / 3.519 GB, free: 81.48 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009757/6.419, allocations: 1.438 MB / 3.52 GB, free: 80.69 MB / 0.6982 GB Notification: Performance of SimCode: time 4.81e-07/6.419, allocations: 0 / 3.52 GB, free: 80.69 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Movers_Examples_ClosedLoop_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Movers_Examples_ClosedLoop_y.fmu > BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.pipe 2>&1)