Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",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.7822/0.7822, allocations: 141.7 MB / 154.3 MB, free: 15.47 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.001026/0.001026, allocations: 183.9 kB / 187.3 MB, free: 11.87 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.435/1.435, 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.000968/0.000968, allocations: 92.31 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001866/0.001866, allocations: 273.2 kB / 0.5939 GB, free: 7.934 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.455e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4392, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7566/1.196, allocations: 358.8 MB / 1.115 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/1.196, allocations: 96.25 kB / 1.115 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.648/2.844, allocations: 437.8 MB / 1.542 GB, free: 163.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.012e-06/2.844, allocations: 0 / 1.542 GB, free: 163.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.364e-05/2.844, allocations: 37.97 kB / 1.542 GB, free: 163.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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002011/2.846, allocations: 1.321 MB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/2.847, allocations: 14.7 kB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.553e-05/2.847, allocations: 97.97 kB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002573/2.847, allocations: 154.4 kB / 1.544 GB, free: 162.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/2.848, allocations: 0.8215 MB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.333e-05/2.848, allocations: 85.66 kB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/2.848, allocations: 117.6 kB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/2.849, allocations: 0.6014 MB / 1.546 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/2.849, allocations: 3.844 kB / 1.546 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/2.849, allocations: 19.97 kB / 1.546 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/2.849, allocations: 14.47 kB / 1.546 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00057/2.85, allocations: 415 kB / 1.546 GB, free: 162.1 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.003888/2.854, allocations: 3.087 MB / 1.549 GB, free: 160.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/2.854, allocations: 296.7 kB / 1.549 GB, free: 160.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/2.854, allocations: 138.3 kB / 1.549 GB, free: 160.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/2.855, allocations: 348.4 kB / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/2.855, allocations: 36.78 kB / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/2.855, allocations: 2.469 kB / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.0007068/2.856, allocations: 400 kB / 1.55 GB, free: 160.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/2.856, allocations: 54.47 kB / 1.55 GB, free: 160.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000746/2.856, allocations: 0.7781 MB / 1.551 GB, free: 160 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001165/2.856, allocations: 58.05 kB / 1.551 GB, free: 160 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003916/2.857, allocations: 0.5457 MB / 1.552 GB, free: 159.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/2.857, allocations: 113.5 kB / 1.552 GB, free: 159.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/2.857, allocations: 10.22 kB / 1.552 GB, free: 159.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.761e-05/2.857, allocations: 328.3 kB / 1.552 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/2.857, allocations: 158.3 kB / 1.552 GB, free: 159.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/2.858, allocations: 1.403 MB / 1.554 GB, free: 158.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/2.859, allocations: 304.8 kB / 1.554 GB, free: 158.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/2.859, allocations: 0 / 1.554 GB, free: 158.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008723/2.86, allocations: 0.5971 MB / 1.554 GB, free: 158.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001784/2.86, allocations: 0.8099 MB / 1.555 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/2.86, allocations: 7.875 kB / 1.555 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/2.86, allocations: 3.969 kB / 1.555 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/2.861, allocations: 200.4 kB / 1.555 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/2.862, allocations: 2.959 MB / 1.558 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/2.865, allocations: 0.912 MB / 1.559 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-05/2.865, allocations: 30.19 kB / 1.559 GB, free: 154.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.326e-06/2.865, allocations: 3.938 kB / 1.559 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006785/2.866, allocations: 464.9 kB / 1.56 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/2.866, allocations: 3.531 kB / 1.56 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.294e-06/2.866, allocations: 7.516 kB / 1.56 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006274/2.867, allocations: 162.8 kB / 1.56 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/2.867, allocations: 9.516 kB / 1.56 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/2.87, allocations: 0.896 MB / 1.561 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/2.87, allocations: 37.42 kB / 1.561 GB, free: 154.4 MB / 0.698 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 (73): * Single equations (assignments): 68 * 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.0002419/2.87, allocations: 168.1 kB / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/2.87, allocations: 97.94 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009183/2.871, allocations: 497.2 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/2.871, allocations: 5.156 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/2.871, allocations: 6.594 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/2.871, allocations: 3.531 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/2.873, allocations: 1.236 MB / 1.563 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/2.873, allocations: 3.594 kB / 1.563 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/2.873, allocations: 118.5 kB / 1.563 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/2.873, allocations: 3.062 kB / 1.563 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/2.873, allocations: 10.75 kB / 1.563 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008278/2.874, allocations: 2.947 MB / 1.566 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/2.874, allocations: 10.14 kB / 1.566 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/2.875, allocations: 0.5956 MB / 1.566 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/2.875, allocations: 225 kB / 1.566 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/2.875, allocations: 13.75 kB / 1.566 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005382/2.876, allocations: 70.97 kB / 1.567 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/2.876, allocations: 34.64 kB / 1.567 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/2.876, allocations: 13.94 kB / 1.567 GB, free: 150.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005975/2.876, allocations: 0.5942 MB / 1.567 GB, free: 150.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/2.876, allocations: 0 / 1.567 GB, free: 150.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001519/2.878, allocations: 0.6092 MB / 1.568 GB, free: 150.2 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 (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.001633/2.88, allocations: 1.813 MB / 1.57 GB, free: 149 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001736/2.881, allocations: 0.776 MB / 1.57 GB, free: 148.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.881, allocations: 0 / 1.57 GB, free: 148.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004172/2.882, allocations: 212 kB / 1.571 GB, free: 148.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/2.884, allocations: 481.3 kB / 1.571 GB, free: 148.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/2.886, allocations: 1.322 MB / 1.572 GB, free: 148.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/2.886, allocations: 1.048 MB / 1.573 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001153/2.888, allocations: 272.3 kB / 1.574 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/2.888, allocations: 352.8 kB / 1.574 GB, free: 147.2 MB / 0.698 GB Notification: Performance of SimCode: time 6.31e-07/2.888, allocations: 2.312 kB / 1.574 GB, free: 147.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06116/2.949, allocations: 38.55 MB / 1.612 GB, free: 114.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/2.949, allocations: 243.3 kB / 1.612 GB, free: 114.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/6, allocations: 2.953 kB / 1.612 GB, free: 114.5 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)