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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7412/0.7412, allocations: 128.7 MB / 143.7 MB, free: 2.324 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.001092/0.001092, allocations: 191.3 kB / 173.7 MB, free: 6.125 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.73/1.73, allocations: 205.4 MB / 409 MB, free: 10.51 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.001159/0.001159, allocations: 94.48 kB / 486.6 MB, free: 13.03 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003808, allocations: 10.33 kB / 0.5604 GB, free: 97.45 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1761, allocations: 76.77 MB / 0.6354 GB, free: 30.48 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.275/1.452, allocations: 361.4 MB / 0.9884 GB, free: 168.6 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/1.452, allocations: 105.1 kB / 0.9885 GB, free: 168.6 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.128/2.58, allocations: 357.6 MB / 1.338 GB, free: 146.8 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.723e-06/2.58, allocations: 0 / 1.338 GB, free: 146.8 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.000199/2.58, allocations: 26.89 kB / 1.338 GB, free: 146.8 MB / 0.6511 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 0.00438/2.584, allocations: 1.296 MB / 1.339 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/2.584, allocations: 7.75 kB / 1.339 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002686/2.585, allocations: 93.2 kB / 1.339 GB, free: 145.8 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/2.586, allocations: 176.1 kB / 1.339 GB, free: 145.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/2.588, allocations: 0.6846 MB / 1.34 GB, free: 145.2 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/2.588, allocations: 57.09 kB / 1.34 GB, free: 145.2 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002458/2.588, allocations: 93.98 kB / 1.34 GB, free: 145.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003706/2.592, allocations: 0.861 MB / 1.341 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/2.592, allocations: 0 / 1.341 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-05/2.592, allocations: 23.09 kB / 1.341 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/2.592, allocations: 10.84 kB / 1.341 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003349/2.596, allocations: 0.7302 MB / 1.342 GB, free: 144.4 MB / 0.6511 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.006863/2.602, allocations: 2.527 MB / 1.344 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002821/2.605, allocations: 0.5688 MB / 1.345 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004601/2.606, allocations: 437.2 kB / 1.345 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/2.606, allocations: 38.38 kB / 1.345 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=25): time 4.729e-06/2.606, allocations: 3.594 kB / 1.345 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=25): time 0.005856/2.612, allocations: 1.082 MB / 1.346 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/2.612, allocations: 54.66 kB / 1.346 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/2.613, allocations: 0.653 MB / 1.347 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0003351/2.613, allocations: 49.3 kB / 1.347 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000518/2.614, allocations: 444 kB / 1.347 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/2.614, allocations: 88.66 kB / 1.347 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/2.614, allocations: 11.81 kB / 1.347 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.315e-05/2.614, allocations: 325.8 kB / 1.348 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008038/2.615, allocations: 271.5 kB / 1.348 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/2.616, allocations: 0.9001 MB / 1.349 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000895/2.617, allocations: 341 kB / 1.349 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/2.617, allocations: 0 / 1.349 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002201/2.62, allocations: 0.7689 MB / 1.35 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002642/2.62, allocations: 0.8036 MB / 1.351 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/2.62, allocations: 0 / 1.351 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/2.62, allocations: 7.984 kB / 1.351 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003822/2.624, allocations: 0.5056 MB / 1.351 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/2.627, allocations: 2.624 MB / 1.354 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/2.629, allocations: 442.5 kB / 1.354 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/2.63, allocations: 27.98 kB / 1.354 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/2.63, allocations: 7.953 kB / 1.354 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001518/2.631, allocations: 0.5621 MB / 1.355 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/2.631, allocations: 7.938 kB / 1.355 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/2.631, allocations: 7.984 kB / 1.355 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008009/2.632, allocations: 166.5 kB / 1.355 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/2.632, allocations: 4 kB / 1.355 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002223/2.634, allocations: 411.3 kB / 1.355 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.905e-05/2.634, allocations: 27.98 kB / 1.355 GB, free: 132.5 MB / 0.6511 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * 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.0007528/2.635, allocations: 289.5 kB / 1.356 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/2.635, allocations: 86.8 kB / 1.356 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/2.637, allocations: 0.627 MB / 1.356 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/2.637, allocations: 0 / 1.356 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/2.637, allocations: 4 kB / 1.356 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/2.637, allocations: 3.984 kB / 1.356 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/2.641, allocations: 1.265 MB / 1.358 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/2.641, allocations: 0 / 1.358 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/2.644, allocations: 0.4971 MB / 1.358 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/2.644, allocations: 2.625 kB / 1.358 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.943e-05/2.644, allocations: 11.98 kB / 1.358 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008121/2.652, allocations: 6.051 MB / 1.364 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/2.652, allocations: 7.703 kB / 1.364 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/2.654, allocations: 0.6477 MB / 1.365 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005552/2.655, allocations: 204 kB / 1.365 GB, free: 122.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/2.655, allocations: 7.938 kB / 1.365 GB, free: 122.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/2.656, allocations: 111.7 kB / 1.365 GB, free: 122.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/2.656, allocations: 27.91 kB / 1.365 GB, free: 122.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/2.656, allocations: 15.98 kB / 1.365 GB, free: 122.2 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0007977/2.657, allocations: 0.5263 MB / 1.366 GB, free: 121.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/2.657, allocations: 0 / 1.366 GB, free: 121.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002274/2.659, allocations: 495.4 kB / 1.366 GB, free: 121.1 MB / 0.6511 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 () * Number of clocked 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.002739/2.662, allocations: 1.524 MB / 1.367 GB, free: 119.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005541/2.668, allocations: 1.228 MB / 1.369 GB, free: 118.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/2.668, allocations: 0 / 1.369 GB, free: 118.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.003301/2.671, allocations: 0.6093 MB / 1.369 GB, free: 117.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/2.673, allocations: 415.5 kB / 1.37 GB, free: 117.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005187/2.679, allocations: 3.203 MB / 1.373 GB, free: 114.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/2.679, allocations: 0.9661 MB / 1.374 GB, free: 113.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001324/2.68, allocations: 170.8 kB / 1.374 GB, free: 113 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005041/2.681, allocations: 307.3 kB / 1.374 GB, free: 112.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.543e-06/2.681, allocations: 0 / 1.374 GB, free: 112.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05433/2.735, allocations: 28.93 MB / 1.402 GB, free: 84.62 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/2.736, allocations: 253.7 kB / 1.403 GB, free: 84.28 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.119/5.855, allocations: 0 / 1.403 GB, free: 84.28 MB / 0.6511 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)