Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") [: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.7239/0.7239, allocations: 141.8 MB / 149.1 MB, free: 12.31 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.001072/0.001072, allocations: 178 kB / 181.9 MB, free: 9.047 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.249/1.249, allocations: 221.3 MB / 436 MB, free: 1.414 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.001016/0.001016, allocations: 106 kB / 0.507 GB, free: 17.61 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001803/0.001803, allocations: 271.7 kB / 0.5884 GB, free: 3.012 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.508e-06/9.608e-06, allocations: 2.688 kB / 0.6759 GB, free: 136.2 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1741, allocations: 82.77 MB / 0.7567 GB, free: 81.72 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6718/0.846, allocations: 353.5 MB / 1.102 GB, free: 5.113 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.8463, allocations: 95.19 kB / 1.102 GB, free: 5.066 MB / 0.6669 GB Notification: Performance of FrontEnd: time 0.7626/1.609, allocations: 240 MB / 1.336 GB, free: 91.28 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 7.104e-05/1.609, allocations: 16 kB / 1.336 GB, free: 91.27 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002105/1.611, allocations: 0.985 MB / 1.337 GB, free: 90.23 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/1.611, allocations: 8.031 kB / 1.337 GB, free: 90.23 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/1.611, allocations: 87.05 kB / 1.337 GB, free: 90.14 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/1.613, allocations: 0.515 MB / 1.338 GB, free: 89.58 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/1.613, allocations: 16 kB / 1.338 GB, free: 89.57 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.769e-05/1.613, allocations: 36 kB / 1.338 GB, free: 89.53 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006423/1.613, allocations: 349.9 kB / 1.338 GB, free: 89.19 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/1.614, allocations: 0.5022 MB / 1.339 GB, free: 88.62 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/1.614, allocations: 0 / 1.339 GB, free: 88.62 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/1.614, allocations: 4 kB / 1.339 GB, free: 88.61 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/1.614, allocations: 16 kB / 1.339 GB, free: 88.6 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/1.617, allocations: 3.099 MB / 1.342 GB, free: 85.33 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004081/1.617, allocations: 272.2 kB / 1.342 GB, free: 85.05 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/1.618, allocations: 172.8 kB / 1.342 GB, free: 84.88 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/1.618, allocations: 352.4 kB / 1.343 GB, free: 84.46 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/1.618, allocations: 38.59 kB / 1.343 GB, free: 84.42 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=38): time 1.963e-06/1.618, allocations: 0 / 1.343 GB, free: 84.42 MB / 0.6982 GB Notification: Performance of matching and sorting (n=38): time 0.002235/1.62, allocations: 0.7158 MB / 1.343 GB, free: 83.69 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/1.62, allocations: 55.41 kB / 1.343 GB, free: 83.62 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004532/1.621, allocations: 447.4 kB / 1.344 GB, free: 83.18 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/1.621, allocations: 25.7 kB / 1.344 GB, free: 83.15 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/1.621, allocations: 260.2 kB / 1.344 GB, free: 82.89 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 7.272e-05/1.621, allocations: 134.1 kB / 1.344 GB, free: 82.75 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/1.621, allocations: 3.938 kB / 1.344 GB, free: 82.75 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.766e-05/1.621, allocations: 370.7 kB / 1.345 GB, free: 82.38 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/1.621, allocations: 149.3 kB / 1.345 GB, free: 82.23 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/1.622, allocations: 323.1 kB / 1.345 GB, free: 81.84 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/1.623, allocations: 476.2 kB / 1.346 GB, free: 81.38 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.623, allocations: 4 kB / 1.346 GB, free: 81.38 MB / 0.6982 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002001/1.625, allocations: 0.8268 MB / 1.346 GB, free: 80.54 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000316/1.625, allocations: 1.74 MB / 1.348 GB, free: 78.66 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.625, allocations: 4 kB / 1.348 GB, free: 78.66 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/1.626, allocations: 108.8 kB / 1.348 GB, free: 78.55 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005574/1.626, allocations: 147.8 kB / 1.348 GB, free: 78.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000919/1.627, allocations: 0.7278 MB / 1.349 GB, free: 77.65 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007202/1.628, allocations: 91.44 kB / 1.349 GB, free: 77.56 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.222e-05/1.628, allocations: 28.05 kB / 1.349 GB, free: 77.53 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/1.628, allocations: 10.97 kB / 1.349 GB, free: 77.52 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001791/1.63, allocations: 0.7081 MB / 1.35 GB, free: 76.81 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/1.63, allocations: 4.062 kB / 1.35 GB, free: 76.81 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/1.63, allocations: 12 kB / 1.35 GB, free: 76.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/1.631, allocations: 159.8 kB / 1.35 GB, free: 76.64 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/1.631, allocations: 12.06 kB / 1.35 GB, free: 76.63 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000644/1.631, allocations: 83.53 kB / 1.35 GB, free: 76.55 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.028e-05/1.631, allocations: 31.98 kB / 1.35 GB, free: 76.52 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001432/1.632, allocations: 125.5 kB / 1.35 GB, free: 76.39 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/1.632, allocations: 63.16 kB / 1.35 GB, free: 76.32 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/1.634, allocations: 0.8249 MB / 1.351 GB, free: 75.49 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/1.634, allocations: 4 kB / 1.351 GB, free: 75.48 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.634, allocations: 8 kB / 1.351 GB, free: 75.48 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/1.634, allocations: 7.984 kB / 1.351 GB, free: 75.47 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/1.637, allocations: 1.47 MB / 1.353 GB, free: 73.94 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/1.637, allocations: 4.094 kB / 1.353 GB, free: 73.94 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/1.637, allocations: 91.88 kB / 1.353 GB, free: 73.85 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003331/1.638, allocations: 124.8 kB / 1.353 GB, free: 73.72 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/1.638, allocations: 11.92 kB / 1.353 GB, free: 73.71 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008308/1.639, allocations: 0.7084 MB / 1.353 GB, free: 72.98 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.639, allocations: 11.84 kB / 1.353 GB, free: 72.96 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001906/1.641, allocations: 0.9047 MB / 1.354 GB, free: 72.01 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/1.641, allocations: 196.1 kB / 1.355 GB, free: 71.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/1.641, allocations: 4 kB / 1.355 GB, free: 71.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/1.642, allocations: 55.84 kB / 1.355 GB, free: 71.74 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/1.642, allocations: 31.95 kB / 1.355 GB, free: 71.71 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/1.642, allocations: 16 kB / 1.355 GB, free: 71.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0003351/1.642, allocations: 335.2 kB / 1.355 GB, free: 71.37 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001382/1.643, allocations: 403.1 kB / 1.355 GB, free: 70.98 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009788/1.644, allocations: 417.9 kB / 1.356 GB, free: 70.57 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00143/1.646, allocations: 0.7191 MB / 1.356 GB, free: 69.85 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.646, allocations: 1.125 kB / 1.356 GB, free: 69.85 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004445/1.646, allocations: 243.8 kB / 1.357 GB, free: 69.61 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/1.647, allocations: 236.1 kB / 1.357 GB, free: 69.39 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/1.649, allocations: 0.7632 MB / 1.358 GB, free: 68.58 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004336/1.649, allocations: 0.9979 MB / 1.359 GB, free: 67.56 MB / 0.6982 GB Notification: Performance of SimCode: time 5.01e-07/1.649, allocations: 0 / 1.359 GB, free: 67.56 MB / 0.6982 GB Notification: Performance of Templates: time 0.02066/1.67, allocations: 14.19 MB / 1.372 GB, free: 53.52 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)