Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7512/0.7512, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 179.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.3 MB / 441.4 MB, free: 4.57 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009535/0.0009534, allocations: 99.97 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001837, allocations: 272.8 kB / 0.5939 GB, free: 7.953 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.825e-05/4.837e-05, allocations: 11.98 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4483/0.4483, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7632/1.212, allocations: 361.2 MB / 1.117 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/1.212, allocations: 102.7 kB / 1.117 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.7594/1.971, allocations: 178.5 MB / 1.292 GB, free: 174.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.154e-06/1.971, allocations: 0 / 1.292 GB, free: 174.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.333e-05/1.972, allocations: 24.14 kB / 1.292 GB, free: 174.3 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001435/1.973, allocations: 0.7706 MB / 1.292 GB, free: 173.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/1.973, allocations: 12.03 kB / 1.292 GB, free: 173.5 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.547e-05/1.973, allocations: 62.53 kB / 1.292 GB, free: 173.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/1.973, allocations: 63.25 kB / 1.292 GB, free: 173.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008771/1.974, allocations: 457.3 kB / 1.293 GB, free: 172.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/1.974, allocations: 20.56 kB / 1.293 GB, free: 172.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.773e-05/1.974, allocations: 36 kB / 1.293 GB, free: 172.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/1.975, allocations: 258.3 kB / 1.293 GB, free: 172.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.975, allocations: 0 / 1.293 GB, free: 172.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/1.975, allocations: 15.98 kB / 1.293 GB, free: 172.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/1.975, allocations: 4 kB / 1.293 GB, free: 172.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/1.975, allocations: 162.1 kB / 1.293 GB, free: 172.4 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/1.977, allocations: 1.511 MB / 1.295 GB, free: 170.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/1.977, allocations: 142.9 kB / 1.295 GB, free: 170.6 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.257e-05/1.977, allocations: 72.84 kB / 1.295 GB, free: 170.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001373/1.979, allocations: 1.315 MB / 1.296 GB, free: 169 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/1.979, allocations: 30.56 kB / 1.296 GB, free: 169 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/1.979, allocations: 0 / 1.296 GB, free: 169 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.0003652/1.979, allocations: 173.9 kB / 1.296 GB, free: 168.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/1.979, allocations: 55.34 kB / 1.297 GB, free: 168.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005892/1.98, allocations: 0.5163 MB / 1.297 GB, free: 168.2 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/1.98, allocations: 29.7 kB / 1.297 GB, free: 168.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/1.98, allocations: 271.9 kB / 1.297 GB, free: 167.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/1.98, allocations: 59.2 kB / 1.297 GB, free: 167.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/1.98, allocations: 4 kB / 1.297 GB, free: 167.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.98, allocations: 358.8 kB / 1.298 GB, free: 167.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.64e-05/1.98, allocations: 56.55 kB / 1.298 GB, free: 167.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/1.981, allocations: 209.4 kB / 1.298 GB, free: 167.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/1.981, allocations: 76.77 kB / 1.298 GB, free: 167.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/1.981, allocations: 0 / 1.298 GB, free: 167.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004504/1.981, allocations: 286.5 kB / 1.298 GB, free: 166.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002148/1.981, allocations: 0.9716 MB / 1.299 GB, free: 165.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/1.981, allocations: 3.938 kB / 1.299 GB, free: 165.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/1.981, allocations: 4 kB / 1.299 GB, free: 165.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/1.982, allocations: 71.84 kB / 1.299 GB, free: 165.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/1.982, allocations: 7.938 kB / 1.299 GB, free: 165.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/1.982, allocations: 55.66 kB / 1.299 GB, free: 165.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/1.982, allocations: 12 kB / 1.299 GB, free: 165.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/1.982, allocations: 4 kB / 1.299 GB, free: 165.6 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003013/1.983, allocations: 205 kB / 1.3 GB, free: 165.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/1.983, allocations: 4 kB / 1.3 GB, free: 165.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.164e-06/1.983, allocations: 12.23 kB / 1.3 GB, free: 165.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/1.983, allocations: 67.91 kB / 1.3 GB, free: 165.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/1.983, allocations: 7.984 kB / 1.3 GB, free: 165.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/1.983, allocations: 43.72 kB / 1.3 GB, free: 165.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/1.983, allocations: 12 kB / 1.3 GB, free: 165.3 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.081e-05/1.983, allocations: 132.8 kB / 1.3 GB, free: 165.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.038e-05/1.983, allocations: 47.44 kB / 1.3 GB, free: 165.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004003/1.984, allocations: 235.3 kB / 1.3 GB, free: 164.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/1.984, allocations: 3.953 kB / 1.3 GB, free: 164.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.984, allocations: 0 / 1.3 GB, free: 164.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.984, allocations: 7.984 kB / 1.3 GB, free: 164.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008597/1.985, allocations: 0.7256 MB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/1.985, allocations: 4 kB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/1.985, allocations: 35.91 kB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/1.985, allocations: 4 kB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/1.985, allocations: 4 kB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/1.985, allocations: 8.125 kB / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.985, allocations: 0 / 1.301 GB, free: 164 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/1.985, allocations: 374.1 kB / 1.301 GB, free: 163.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/1.985, allocations: 160.3 kB / 1.301 GB, free: 163.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/1.985, allocations: 11.94 kB / 1.301 GB, free: 163.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/1.986, allocations: 15.98 kB / 1.301 GB, free: 163.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/1.986, allocations: 15.98 kB / 1.301 GB, free: 163.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/1.986, allocations: 8 kB / 1.301 GB, free: 163.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003831/1.986, allocations: 405.5 kB / 1.302 GB, free: 162.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.8e-07/1.986, allocations: 7.938 kB / 1.302 GB, free: 162.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000907/1.987, allocations: 263.6 kB / 1.302 GB, free: 162.7 MB / 0.698 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 (17): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001815/1.989, allocations: 1.672 MB / 1.304 GB, free: 161.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005349/1.989, allocations: 312.6 kB / 1.304 GB, free: 160.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/1.989, allocations: 0 / 1.304 GB, free: 160.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/1.99, allocations: 79.73 kB / 1.304 GB, free: 160.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/1.991, allocations: 253 kB / 1.304 GB, free: 160.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/1.993, allocations: 0.7169 MB / 1.305 GB, free: 159.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/1.993, allocations: 0.8597 MB / 1.306 GB, free: 158.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006134/1.993, allocations: 180.1 kB / 1.306 GB, free: 158.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/1.994, allocations: 159.4 kB / 1.306 GB, free: 158.4 MB / 0.698 GB Notification: Performance of SimCode: time 8.22e-07/1.994, allocations: 0 / 1.306 GB, free: 158.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/2.028, allocations: 17.16 MB / 1.323 GB, free: 141.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/2.028, allocations: 219.1 kB / 1.323 GB, free: 141.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.438/4.466, allocations: 1.719 kB / 1.323 GB, free: 141.3 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)