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: translateModel(BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y") translateModel(BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y") [: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.7206/0.7206, allocations: 141.8 MB / 149.1 MB, free: 13.19 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 185.2 kB / 181.9 MB, free: 9.875 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.3 MB / 436 MB, free: 2.289 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.0009731/0.0009731, allocations: 97.36 kB / 0.507 GB, free: 11.05 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001893/0.001892, allocations: 278.7 kB / 0.5884 GB, free: 7.906 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.777e-06/8.817e-06, allocations: 1.562 kB / 0.6759 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1478, allocations: 82.79 MB / 0.7567 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.723/3.871, allocations: 1.908 GB / 2.664 GB, free: 107.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/3.871, allocations: 87.95 kB / 2.664 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.969/6.841, allocations: 0.8101 GB / 3.474 GB, free: 71.17 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0002552/6.841, allocations: 43.06 kB / 3.474 GB, free: 71.13 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 0.005708/6.847, allocations: 1.833 MB / 3.476 GB, free: 69.25 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/6.847, allocations: 9.031 kB / 3.476 GB, free: 69.25 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00363/6.85, allocations: 453.4 kB / 3.477 GB, free: 68.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005601/6.856, allocations: 1.843 MB / 3.478 GB, free: 66.94 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.417e-05/6.856, allocations: 32 kB / 3.479 GB, free: 66.91 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003791/6.856, allocations: 71.89 kB / 3.479 GB, free: 66.84 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001998/6.858, allocations: 0.8552 MB / 3.479 GB, free: 65.98 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/6.86, allocations: 1.011 MB / 3.48 GB, free: 64.93 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/6.86, allocations: 7.938 kB / 3.48 GB, free: 64.93 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/6.861, allocations: 7.984 kB / 3.48 GB, free: 64.92 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.721e-05/6.861, allocations: 34 kB / 3.48 GB, free: 64.89 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007885/6.869, allocations: 5.002 MB / 3.485 GB, free: 59.64 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/6.87, allocations: 0.7627 MB / 3.486 GB, free: 58.88 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/6.87, allocations: 440.1 kB / 3.486 GB, free: 58.45 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002756/6.871, allocations: 194.8 kB / 3.487 GB, free: 58.22 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006286/6.871, allocations: 443 kB / 3.487 GB, free: 57.78 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=72): time 4.028e-06/6.871, allocations: 0 / 3.487 GB, free: 57.78 MB / 0.6982 GB Notification: Performance of matching and sorting (n=72): time 0.002733/6.874, allocations: 0.913 MB / 3.488 GB, free: 56.86 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/6.874, allocations: 115.5 kB / 3.488 GB, free: 56.72 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/6.876, allocations: 0.8768 MB / 3.489 GB, free: 55.84 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/6.876, allocations: 29.7 kB / 3.489 GB, free: 55.8 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/6.876, allocations: 440.8 kB / 3.489 GB, free: 55.36 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.000257/6.877, allocations: 243.4 kB / 3.49 GB, free: 55.12 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/6.877, allocations: 0 / 3.49 GB, free: 55.12 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.535e-05/6.877, allocations: 341.8 kB / 3.49 GB, free: 54.79 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/6.877, allocations: 313.9 kB / 3.49 GB, free: 54.48 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/6.878, allocations: 0.5549 MB / 3.491 GB, free: 53.81 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008503/6.879, allocations: 414.6 kB / 3.491 GB, free: 53.41 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/6.879, allocations: 11.94 kB / 3.491 GB, free: 53.39 MB / 0.6982 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001944/6.881, allocations: 1.036 MB / 3.492 GB, free: 52.35 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004291/6.881, allocations: 2.036 MB / 3.494 GB, free: 50.18 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/6.881, allocations: 8 kB / 3.494 GB, free: 50.17 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003865/6.881, allocations: 100.8 kB / 3.494 GB, free: 50.07 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/6.883, allocations: 215.7 kB / 3.495 GB, free: 49.86 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008109/6.883, allocations: 1.291 MB / 3.496 GB, free: 48.52 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/6.885, allocations: 131.2 kB / 3.496 GB, free: 48.39 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/6.885, allocations: 55.97 kB / 3.496 GB, free: 48.34 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/6.885, allocations: 4 kB / 3.496 GB, free: 48.33 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001738/6.887, allocations: 0.8484 MB / 3.497 GB, free: 47.48 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/6.887, allocations: 4 kB / 3.497 GB, free: 47.48 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004404/6.887, allocations: 105 kB / 3.497 GB, free: 47.38 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008243/6.888, allocations: 203.7 kB / 3.497 GB, free: 47.18 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00406/6.892, allocations: 2.624 MB / 3.5 GB, free: 44.36 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/6.894, allocations: 114.7 kB / 3.5 GB, free: 44.25 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/6.894, allocations: 47.98 kB / 3.5 GB, free: 44.21 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.0004068/6.894, allocations: 132.7 kB / 3.5 GB, free: 44.07 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000461/6.895, allocations: 138.3 kB / 3.5 GB, free: 43.93 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/6.897, allocations: 0.888 MB / 3.501 GB, free: 43.03 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/6.897, allocations: 8 kB / 3.501 GB, free: 43.02 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/6.897, allocations: 0 / 3.501 GB, free: 43.02 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001322/6.899, allocations: 0.7871 MB / 3.502 GB, free: 42.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/6.903, allocations: 2.038 MB / 3.504 GB, free: 40.12 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/6.903, allocations: 0 / 3.504 GB, free: 40.12 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009249/6.904, allocations: 175 kB / 3.504 GB, free: 39.96 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/6.904, allocations: 60.81 kB / 3.504 GB, free: 39.89 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.551e-05/6.904, allocations: 19.89 kB / 3.504 GB, free: 39.88 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005726/6.905, allocations: 1.205 MB / 3.505 GB, free: 38.62 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/6.905, allocations: 4 kB / 3.505 GB, free: 38.62 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002174/6.907, allocations: 1.417 MB / 3.507 GB, free: 37.16 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007674/6.908, allocations: 291.2 kB / 3.507 GB, free: 36.86 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/6.908, allocations: 8 kB / 3.507 GB, free: 36.85 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/6.909, allocations: 75.83 kB / 3.507 GB, free: 36.77 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/6.91, allocations: 48.52 kB / 3.507 GB, free: 36.73 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.079e-05/6.91, allocations: 35.38 kB / 3.507 GB, free: 36.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001271/6.911, allocations: 0.6687 MB / 3.508 GB, free: 36.02 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003688/6.915, allocations: 0.955 MB / 3.509 GB, free: 35.07 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.004446/6.919, allocations: 2.867 MB / 3.511 GB, free: 32.29 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002878/6.922, allocations: 1.441 MB / 3.513 GB, free: 30.82 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/6.922, allocations: 1.422 kB / 3.513 GB, free: 30.82 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007567/6.923, allocations: 387.5 kB / 3.513 GB, free: 30.45 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/6.926, allocations: 0.5366 MB / 3.514 GB, free: 29.91 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005085/6.931, allocations: 2.042 MB / 3.516 GB, free: 27.83 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/6.932, allocations: 1.418 MB / 3.517 GB, free: 26.38 MB / 0.6982 GB Notification: Performance of SimCode: time 9.62e-07/6.932, allocations: 3.281 kB / 3.517 GB, free: 26.38 MB / 0.6982 GB Notification: Performance of Templates: time 0.07937/7.012, allocations: 42.7 MB / 3.559 GB, free: 8 kB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Movers.Examples.ClosedLoop_y.pipe 2>&1)