Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.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/IBPSA 4.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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",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.001133/0.001133, allocations: 192.8 kB / 7.806 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4833/0.4833, allocations: 90.85 MB / 99.07 MB, free: 14.92 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.4 MB / 342.8 MB, free: 5.117 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009105/0.0009106, allocations: 89.08 kB / 415.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1842/0.1851, allocations: 78.46 MB / 494 MB, free: 11.46 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.5934, allocations: 72.3 MB / 0.553 GB, free: 44.77 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6273/1.221, allocations: 350.9 MB / 0.8957 GB, free: 6.883 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/1.221, allocations: 96.12 kB / 0.8958 GB, free: 6.832 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.419/2.64, allocations: 437 MB / 1.323 GB, free: 97.41 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/2.64, allocations: 16 kB / 1.323 GB, free: 97.39 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/2.64, allocations: 146.5 kB / 1.323 GB, free: 97.25 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/2.642, allocations: 0.8624 MB / 1.324 GB, free: 96.35 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/2.642, allocations: 23.91 kB / 1.324 GB, free: 96.33 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/2.642, allocations: 80 kB / 1.324 GB, free: 96.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006599/2.643, allocations: 390.5 kB / 1.324 GB, free: 95.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006967/2.644, allocations: 0.5199 MB / 1.325 GB, free: 95.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/2.644, allocations: 0 / 1.325 GB, free: 95.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/2.644, allocations: 0 / 1.325 GB, free: 95.32 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/2.644, allocations: 19.98 kB / 1.325 GB, free: 95.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/2.648, allocations: 2.932 MB / 1.327 GB, free: 92.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/2.648, allocations: 319.3 kB / 1.328 GB, free: 91.94 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/2.648, allocations: 129.4 kB / 1.328 GB, free: 91.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002653/2.649, allocations: 348.4 kB / 1.328 GB, free: 91.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/2.649, allocations: 50.72 kB / 1.328 GB, free: 91.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=33): time 1.753e-06/2.649, allocations: 0 / 1.328 GB, free: 91.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=33): time 0.001322/2.65, allocations: 498.7 kB / 1.329 GB, free: 90.86 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.41e-05/2.65, allocations: 55.41 kB / 1.329 GB, free: 90.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000625/2.651, allocations: 0.6438 MB / 1.329 GB, free: 90.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001173/2.651, allocations: 33.7 kB / 1.329 GB, free: 90.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/2.651, allocations: 404.5 kB / 1.33 GB, free: 89.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/2.651, allocations: 106.4 kB / 1.33 GB, free: 89.57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/2.651, allocations: 4 kB / 1.33 GB, free: 89.57 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.463e-05/2.651, allocations: 333.9 kB / 1.33 GB, free: 89.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/2.651, allocations: 157.3 kB / 1.33 GB, free: 89.08 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/2.653, allocations: 1.412 MB / 1.332 GB, free: 87.28 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008659/2.653, allocations: 388 kB / 1.332 GB, free: 86.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/2.653, allocations: 4 kB / 1.332 GB, free: 86.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001386/2.655, allocations: 0.6632 MB / 1.333 GB, free: 86.23 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/2.655, allocations: 0.8096 MB / 1.334 GB, free: 85.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/2.655, allocations: 4 kB / 1.334 GB, free: 85.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/2.655, allocations: 7.938 kB / 1.334 GB, free: 85.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/2.656, allocations: 207.1 kB / 1.334 GB, free: 85.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/2.658, allocations: 3 MB / 1.337 GB, free: 82.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/2.661, allocations: 0.7616 MB / 1.337 GB, free: 81.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.689e-05/2.661, allocations: 27.98 kB / 1.337 GB, free: 81.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/2.661, allocations: 11.91 kB / 1.337 GB, free: 81.23 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001141/2.662, allocations: 0.4908 MB / 1.338 GB, free: 80.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/2.662, allocations: 4 kB / 1.338 GB, free: 80.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.806e-06/2.662, allocations: 7.938 kB / 1.338 GB, free: 80.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/2.663, allocations: 156 kB / 1.338 GB, free: 80.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/2.663, allocations: 11.92 kB / 1.338 GB, free: 80.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003169/2.666, allocations: 0.7538 MB / 1.339 GB, free: 79.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.901e-05/2.666, allocations: 23.98 kB / 1.339 GB, free: 79.78 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002701/2.666, allocations: 142.3 kB / 1.339 GB, free: 79.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/2.667, allocations: 86.88 kB / 1.339 GB, free: 79.55 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/2.668, allocations: 0.5699 MB / 1.34 GB, free: 78.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/2.668, allocations: 4 kB / 1.34 GB, free: 78.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/2.668, allocations: 0 / 1.34 GB, free: 78.98 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/2.668, allocations: 3.984 kB / 1.34 GB, free: 78.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/2.67, allocations: 1.234 MB / 1.341 GB, free: 77.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/2.67, allocations: 0 / 1.341 GB, free: 77.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005564/2.671, allocations: 123 kB / 1.341 GB, free: 77.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/2.671, allocations: 4 kB / 1.341 GB, free: 77.57 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/2.671, allocations: 11.89 kB / 1.341 GB, free: 77.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009117/2.672, allocations: 2.961 MB / 1.344 GB, free: 74.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/2.672, allocations: 0 / 1.344 GB, free: 74.48 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001121/2.673, allocations: 0.6626 MB / 1.345 GB, free: 73.77 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001319/2.674, allocations: 1.084 MB / 1.346 GB, free: 72.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004043/2.675, allocations: 219.7 kB / 1.346 GB, free: 72.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/2.675, allocations: 7.906 kB / 1.346 GB, free: 72.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005786/2.675, allocations: 63.86 kB / 1.346 GB, free: 72.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/2.676, allocations: 27.88 kB / 1.346 GB, free: 72.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/2.676, allocations: 19.98 kB / 1.346 GB, free: 72.28 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0005886/2.676, allocations: 492.5 kB / 1.346 GB, free: 71.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003775/2.68, allocations: 0.7013 MB / 1.347 GB, free: 71.09 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009811/2.681, allocations: 0.4965 MB / 1.348 GB, free: 70.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002546/2.683, allocations: 0.7789 MB / 1.348 GB, free: 69.87 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/2.684, allocations: 4.062 kB / 1.348 GB, free: 69.86 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004903/2.684, allocations: 215.8 kB / 1.349 GB, free: 69.65 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/2.686, allocations: 383.8 kB / 1.349 GB, free: 69.29 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/2.688, allocations: 1.075 MB / 1.35 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000585/2.689, allocations: 1.135 MB / 1.351 GB, free: 67 MB / 0.6042 GB Notification: Performance of SimCode: time 6.41e-07/2.689, allocations: 0 / 1.351 GB, free: 67 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)