Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_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/BuildSysPro 3.5.0/package.mo): time 0.7172/0.7172, allocations: 127.4 MB / 134.6 MB, free: 4.078 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00135/0.00135, allocations: 177.3 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.875/1.875, allocations: 205.1 MB / 399.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009503/0.0009499, allocations: 88.44 kB / 476.3 MB, free: 8.84 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3652/0.3662, allocations: 82.89 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.5514, allocations: 76.75 MB / 0.621 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.236/1.787, allocations: 360.6 MB / 0.9732 GB, free: 121.2 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/1.788, allocations: 98.38 kB / 0.9733 GB, free: 121.1 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 1.175/2.963, allocations: 356.3 MB / 1.321 GB, free: 37.32 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/2.963, allocations: 8 kB / 1.321 GB, free: 37.32 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/2.964, allocations: 190.7 kB / 1.321 GB, free: 37.13 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002057/2.966, allocations: 0.6802 MB / 1.322 GB, free: 36.41 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/2.966, allocations: 19.94 kB / 1.322 GB, free: 36.39 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002642/2.966, allocations: 56 kB / 1.322 GB, free: 36.34 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007376/2.967, allocations: 333.9 kB / 1.322 GB, free: 36.01 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/2.968, allocations: 468.3 kB / 1.323 GB, free: 35.52 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/2.968, allocations: 3.984 kB / 1.323 GB, free: 35.52 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.79e-05/2.968, allocations: 0 / 1.323 GB, free: 35.52 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/2.968, allocations: 12 kB / 1.323 GB, free: 35.5 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/2.972, allocations: 2.721 MB / 1.326 GB, free: 32.6 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/2.972, allocations: 242.7 kB / 1.326 GB, free: 32.35 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/2.972, allocations: 100.8 kB / 1.326 GB, free: 32.25 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002117/2.973, allocations: 101.1 kB / 1.326 GB, free: 32.13 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/2.973, allocations: 42.56 kB / 1.326 GB, free: 32.08 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/2.973, allocations: 0 / 1.326 GB, free: 32.08 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23): time 0.003211/2.976, allocations: 0.6606 MB / 1.327 GB, free: 31.41 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/2.976, allocations: 51.41 kB / 1.327 GB, free: 31.35 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006475/2.977, allocations: 0.5507 MB / 1.327 GB, free: 30.79 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/2.977, allocations: 33.7 kB / 1.327 GB, free: 30.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/2.977, allocations: 328.7 kB / 1.328 GB, free: 30.42 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.65e-05/2.977, allocations: 78.8 kB / 1.328 GB, free: 30.34 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/2.977, allocations: 0 / 1.328 GB, free: 30.34 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001193/2.977, allocations: 382.8 kB / 1.328 GB, free: 29.96 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/2.978, allocations: 169 kB / 1.328 GB, free: 29.79 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007408/2.978, allocations: 0.7918 MB / 1.329 GB, free: 28.78 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/2.98, allocations: 386.9 kB / 1.329 GB, free: 28.4 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/2.98, allocations: 0 / 1.329 GB, free: 28.4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001905/2.981, allocations: 0.6854 MB / 1.33 GB, free: 27.71 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002362/2.982, allocations: 0.8058 MB / 1.331 GB, free: 26.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/2.982, allocations: 4 kB / 1.331 GB, free: 26.84 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/2.982, allocations: 7.906 kB / 1.331 GB, free: 26.83 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/2.986, allocations: 0.5346 MB / 1.331 GB, free: 26.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/2.989, allocations: 2.664 MB / 1.334 GB, free: 23.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/2.991, allocations: 375.9 kB / 1.334 GB, free: 23.17 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/2.991, allocations: 23.98 kB / 1.334 GB, free: 23.15 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/2.991, allocations: 8 kB / 1.334 GB, free: 23.14 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001487/2.993, allocations: 0.5052 MB / 1.335 GB, free: 22.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/2.993, allocations: 4 kB / 1.335 GB, free: 22.63 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/2.993, allocations: 7.984 kB / 1.335 GB, free: 22.62 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008244/2.994, allocations: 167.8 kB / 1.335 GB, free: 22.46 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/2.994, allocations: 4 kB / 1.335 GB, free: 22.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/2.995, allocations: 343.9 kB / 1.335 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/2.996, allocations: 23.98 kB / 1.335 GB, free: 22.09 MB / 0.6355 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 (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003369/2.996, allocations: 121.5 kB / 1.335 GB, free: 21.96 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/2.996, allocations: 75.05 kB / 1.336 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001786/2.998, allocations: 0.5036 MB / 1.336 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/2.998, allocations: 0 / 1.336 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/2.998, allocations: 4 kB / 1.336 GB, free: 21.37 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/2.998, allocations: 0 / 1.336 GB, free: 21.37 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/3.001, allocations: 1.111 MB / 1.337 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/3.001, allocations: 3.984 kB / 1.337 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0036/3.005, allocations: 0.5268 MB / 1.338 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/3.005, allocations: 0 / 1.338 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/3.005, allocations: 15.92 kB / 1.338 GB, free: 19.67 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007372/3.012, allocations: 5.597 MB / 1.343 GB, free: 13.62 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/3.012, allocations: 0 / 1.343 GB, free: 13.62 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001628/3.014, allocations: 0.5614 MB / 1.344 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001662/3.016, allocations: 0.9832 MB / 1.345 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004254/3.016, allocations: 196 kB / 1.345 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/3.016, allocations: 0 / 1.345 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009632/3.017, allocations: 99.8 kB / 1.345 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/3.017, allocations: 19.97 kB / 1.345 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.832e-05/3.017, allocations: 11.98 kB / 1.345 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0005737/3.018, allocations: 419.1 kB / 1.345 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003914/3.022, allocations: 0.5577 MB / 1.346 GB, free: 10.73 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000996/3.023, allocations: 455.2 kB / 1.346 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.005889/3.029, allocations: 1.168 MB / 1.347 GB, free: 9.113 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/3.029, allocations: 4 kB / 1.347 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004315/3.033, allocations: 0.7148 MB / 1.348 GB, free: 8.395 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/3.035, allocations: 321.9 kB / 1.348 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/3.038, allocations: 0.9483 MB / 1.349 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007663/3.039, allocations: 1.06 MB / 1.35 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of SimCode: time 1.393e-06/3.039, allocations: 0 / 1.35 GB, free: 6.016 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)