Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.8187/0.8187, allocations: 127.4 MB / 134.9 MB, free: 3.719 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.0009871/0.000987, allocations: 176.8 kB / 164.6 MB, free: 6.531 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.315/1.315, allocations: 205.2 MB / 399.5 MB, free: 5.953 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.0008768/0.0008767, allocations: 98.39 kB / 476.7 MB, free: 8.68 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.489e-05/1.491e-05, allocations: 4 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1423, allocations: 76.77 MB / 0.6216 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9985/1.141, allocations: 387.4 MB / 1 GB, free: 133.2 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/1.141, allocations: 102.1 kB / 1 GB, free: 133.2 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 2.262/3.403, allocations: 0.6433 GB / 1.643 GB, free: 77.02 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.425e-06/3.403, allocations: 0 / 1.643 GB, free: 77.02 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0002343/3.403, allocations: 56.48 kB / 1.643 GB, free: 77.02 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004284/3.408, allocations: 1.752 MB / 1.645 GB, free: 76.47 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/3.408, allocations: 13.84 kB / 1.645 GB, free: 76.47 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009722/3.409, allocations: 203 kB / 1.645 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004463/3.413, allocations: 1.853 MB / 1.647 GB, free: 76.05 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/3.413, allocations: 31.81 kB / 1.647 GB, free: 76.05 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002152/3.414, allocations: 67.09 kB / 1.647 GB, free: 76.05 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001423/3.415, allocations: 0.6389 MB / 1.648 GB, free: 76.04 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/3.417, allocations: 0.8609 MB / 1.649 GB, free: 75.91 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/3.417, allocations: 0 / 1.649 GB, free: 75.91 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.679e-05/3.417, allocations: 2.094 kB / 1.649 GB, free: 75.91 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.551e-05/3.417, allocations: 28.09 kB / 1.649 GB, free: 75.91 MB / 0.6511 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.007882/3.425, allocations: 5.517 MB / 1.654 GB, free: 72.86 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004736/3.425, allocations: 312.7 kB / 1.654 GB, free: 72.83 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/3.425, allocations: 179.1 kB / 1.655 GB, free: 72.82 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/3.426, allocations: 178.4 kB / 1.655 GB, free: 72.63 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/3.426, allocations: 40.53 kB / 1.655 GB, free: 72.59 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=35): time 1.894e-06/3.426, allocations: 0.75 kB / 1.655 GB, free: 72.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35): time 0.002143/3.428, allocations: 0.5778 MB / 1.655 GB, free: 72.49 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/3.428, allocations: 55.31 kB / 1.655 GB, free: 72.43 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/3.43, allocations: 0.9908 MB / 1.656 GB, free: 72.28 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001803/3.43, allocations: 27.73 kB / 1.656 GB, free: 72.25 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006106/3.43, allocations: 0.7533 MB / 1.657 GB, free: 72.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/3.43, allocations: 120.8 kB / 1.657 GB, free: 71.95 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/3.431, allocations: 0 / 1.657 GB, free: 71.95 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.095e-05/3.431, allocations: 344.8 kB / 1.658 GB, free: 71.64 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/3.431, allocations: 222.8 kB / 1.658 GB, free: 71.64 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/3.432, allocations: 0.4966 MB / 1.658 GB, free: 71.32 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/3.432, allocations: 320 kB / 1.659 GB, free: 71.31 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/3.432, allocations: 2.188 kB / 1.659 GB, free: 71.31 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001759/3.434, allocations: 0.798 MB / 1.659 GB, free: 71.21 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004825/3.435, allocations: 2.216 MB / 1.662 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/3.435, allocations: 6.125 kB / 1.662 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.364e-05/3.435, allocations: 12.16 kB / 1.662 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/3.436, allocations: 220.9 kB / 1.662 GB, free: 68.94 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/3.436, allocations: 13.28 kB / 1.662 GB, free: 68.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/3.437, allocations: 160.6 kB / 1.662 GB, free: 68.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/3.437, allocations: 38.69 kB / 1.662 GB, free: 68.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/3.437, allocations: 5.469 kB / 1.662 GB, free: 68.92 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001128/3.439, allocations: 0.5585 MB / 1.663 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/3.439, allocations: 6.062 kB / 1.663 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/3.439, allocations: 12.56 kB / 1.663 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/3.439, allocations: 171.6 kB / 1.663 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/3.439, allocations: 18.33 kB / 1.663 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/3.441, allocations: 106.9 kB / 1.663 GB, free: 68.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/3.441, allocations: 35.2 kB / 1.663 GB, free: 68.89 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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 0.0002175/3.441, allocations: 131 kB / 1.663 GB, free: 68.78 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009739/3.442, allocations: 471.1 kB / 1.663 GB, free: 68.67 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/3.442, allocations: 130.5 kB / 1.664 GB, free: 68.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009928/3.443, allocations: 483.2 kB / 1.664 GB, free: 68.54 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/3.443, allocations: 4.688 kB / 1.664 GB, free: 68.54 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/3.443, allocations: 5.203 kB / 1.664 GB, free: 68.54 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000593/3.444, allocations: 0.6673 MB / 1.665 GB, free: 68.09 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/3.445, allocations: 0.8983 MB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/3.445, allocations: 3.188 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006813/3.446, allocations: 125.6 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.377e-06/3.446, allocations: 1.469 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/3.446, allocations: 6.531 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.249e-06/3.446, allocations: 4.594 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/3.446, allocations: 2.219 kB / 1.666 GB, free: 67.92 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/3.447, allocations: 0.7989 MB / 1.667 GB, free: 67.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/3.448, allocations: 278.3 kB / 1.667 GB, free: 67.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/3.448, allocations: 0 / 1.667 GB, free: 67.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/3.449, allocations: 96.17 kB / 1.667 GB, free: 67.54 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/3.449, allocations: 25.8 kB / 1.667 GB, free: 67.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/3.449, allocations: 13.91 kB / 1.667 GB, free: 67.54 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001073/3.45, allocations: 0.7326 MB / 1.668 GB, free: 67.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.152e-06/3.45, allocations: 0 / 1.668 GB, free: 67.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002636/3.453, allocations: 0.7847 MB / 1.668 GB, free: 67.32 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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 Backend phase and start with SimCode phase: time 0.002447/3.455, allocations: 1.992 MB / 1.67 GB, free: 66.49 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001521/3.457, allocations: 0.8537 MB / 1.671 GB, free: 66.47 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/3.457, allocations: 2.125 kB / 1.671 GB, free: 66.47 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002428/3.457, allocations: 187 kB / 1.671 GB, free: 66.47 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/3.461, allocations: 0.659 MB / 1.672 GB, free: 66.46 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/3.474, allocations: 2.883 MB / 1.675 GB, free: 65.86 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006676/3.475, allocations: 1.257 MB / 1.676 GB, free: 65.14 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001847/3.477, allocations: 381.9 kB / 1.676 GB, free: 65.13 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/3.477, allocations: 0.5382 MB / 1.677 GB, free: 65.12 MB / 0.6511 GB Notification: Performance of SimCode: time 9.61e-07/3.477, allocations: 0 / 1.677 GB, free: 65.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07221/3.549, allocations: 40.35 MB / 1.716 GB, free: 63.32 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/3.55, allocations: 179.5 kB / 1.716 GB, free: 63.13 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.275/6.825, allocations: 1.406 kB / 1.716 GB, free: 63.13 MB / 0.6511 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)