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.9908/0.9908, allocations: 141.8 MB / 149.3 MB, free: 9.242 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001423, allocations: 169 kB / 182.2 MB, free: 9.469 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.526/1.526, allocations: 221.5 MB / 436.4 MB, free: 13.37 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.001007/0.001007, allocations: 92.05 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001789/0.001789, allocations: 281 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.243e-05, allocations: 4 kB / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4643/0.4643, allocations: 82.76 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8558/1.32, allocations: 358.1 MB / 1.107 GB, free: 6.676 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/1.32, allocations: 91.7 kB / 1.107 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.713/3.033, allocations: 434.3 MB / 1.531 GB, free: 166.6 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.924e-06/3.033, allocations: 0 / 1.531 GB, free: 166.6 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001614/3.033, allocations: 38.3 kB / 1.531 GB, free: 166.6 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.003314/3.037, allocations: 1.329 MB / 1.533 GB, free: 166 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/3.037, allocations: 7.688 kB / 1.533 GB, free: 166 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008033/3.038, allocations: 148.7 kB / 1.533 GB, free: 165.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002052/3.04, allocations: 0.8275 MB / 1.534 GB, free: 165.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/3.04, allocations: 18.5 kB / 1.534 GB, free: 165.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004104/3.04, allocations: 79.78 kB / 1.534 GB, free: 165.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007269/3.041, allocations: 390.4 kB / 1.534 GB, free: 165.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008537/3.042, allocations: 0.5112 MB / 1.535 GB, free: 165.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/3.042, allocations: 3.969 kB / 1.535 GB, free: 165.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.613e-05/3.042, allocations: 2.938 kB / 1.535 GB, free: 165.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/3.042, allocations: 15.28 kB / 1.535 GB, free: 165.5 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.005537/3.047, allocations: 2.932 MB / 1.538 GB, free: 164.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/3.048, allocations: 305.4 kB / 1.538 GB, free: 164.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/3.048, allocations: 133.7 kB / 1.538 GB, free: 164.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000289/3.048, allocations: 350.5 kB / 1.538 GB, free: 163.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/3.048, allocations: 37.59 kB / 1.538 GB, free: 163.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.444e-06/3.048, allocations: 0 / 1.538 GB, free: 163.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.001562/3.05, allocations: 482.5 kB / 1.539 GB, free: 163.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/3.05, allocations: 55.19 kB / 1.539 GB, free: 163.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000829/3.051, allocations: 0.6424 MB / 1.54 GB, free: 163.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002588/3.051, allocations: 33.05 kB / 1.54 GB, free: 163.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005006/3.052, allocations: 0.5383 MB / 1.54 GB, free: 163.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/3.052, allocations: 110.6 kB / 1.54 GB, free: 163.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/3.052, allocations: 0 / 1.54 GB, free: 163.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.555e-05/3.052, allocations: 330.9 kB / 1.54 GB, free: 162.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/3.052, allocations: 152.7 kB / 1.541 GB, free: 162.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/3.053, allocations: 1.371 MB / 1.542 GB, free: 161.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009297/3.054, allocations: 370.3 kB / 1.542 GB, free: 161.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/3.054, allocations: 3.906 kB / 1.542 GB, free: 161.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001554/3.056, allocations: 0.649 MB / 1.543 GB, free: 161.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001937/3.056, allocations: 0.8175 MB / 1.544 GB, free: 160.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/3.056, allocations: 3.531 kB / 1.544 GB, free: 160.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/3.056, allocations: 5.812 kB / 1.544 GB, free: 160.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/3.057, allocations: 210.1 kB / 1.544 GB, free: 160.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/3.059, allocations: 2.983 MB / 1.547 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/3.062, allocations: 0.8727 MB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.179e-05/3.062, allocations: 30.12 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/3.062, allocations: 5.719 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001105/3.063, allocations: 487.3 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/3.063, allocations: 3.844 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/3.063, allocations: 3.906 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/3.064, allocations: 156.9 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/3.064, allocations: 10 kB / 1.548 GB, free: 157.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003461/3.067, allocations: 0.8645 MB / 1.549 GB, free: 157.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.899e-05/3.068, allocations: 26.05 kB / 1.549 GB, free: 157.8 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 (71): * Single equations (assignments): 66 * 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.0003851/3.068, allocations: 141.1 kB / 1.549 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001112/3.069, allocations: 434.3 kB / 1.55 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/3.069, allocations: 82.47 kB / 1.55 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/3.071, allocations: 0.547 MB / 1.55 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/3.071, allocations: 7.5 kB / 1.55 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/3.071, allocations: 3.875 kB / 1.55 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/3.071, allocations: 0 / 1.55 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002333/3.073, allocations: 1.219 MB / 1.552 GB, free: 156.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/3.073, allocations: 0 / 1.552 GB, free: 156.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/3.074, allocations: 118.3 kB / 1.552 GB, free: 156.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/3.074, allocations: 3.688 kB / 1.552 GB, free: 156.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/3.074, allocations: 13.45 kB / 1.552 GB, free: 156.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000874/3.075, allocations: 2.951 MB / 1.555 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/3.075, allocations: 3.688 kB / 1.555 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/3.076, allocations: 0.6507 MB / 1.555 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/3.076, allocations: 219.5 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/3.076, allocations: 7.922 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/3.077, allocations: 63.42 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/3.077, allocations: 25.91 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/3.077, allocations: 14.53 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005749/3.078, allocations: 485.9 kB / 1.556 GB, free: 153.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.01e-07/3.078, allocations: 6.281 kB / 1.556 GB, free: 153.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002277/3.08, allocations: 0.5895 MB / 1.557 GB, free: 152.9 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.002402/3.082, allocations: 1.871 MB / 1.558 GB, free: 151.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002383/3.085, allocations: 0.7418 MB / 1.559 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/3.085, allocations: 0 / 1.559 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004213/3.085, allocations: 212.4 kB / 1.559 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/3.087, allocations: 384.5 kB / 1.56 GB, free: 151.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/3.09, allocations: 1.246 MB / 1.561 GB, free: 150.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/3.091, allocations: 1.053 MB / 1.562 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001631/3.093, allocations: 250.8 kB / 1.562 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/3.093, allocations: 347.7 kB / 1.563 GB, free: 149.9 MB / 0.698 GB Notification: Performance of SimCode: time 6.51e-07/3.093, allocations: 2.156 kB / 1.563 GB, free: 149.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06381/3.157, allocations: 32.15 MB / 1.594 GB, free: 123 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/3.157, allocations: 186.5 kB / 1.594 GB, free: 122.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.06/6.218, allocations: 0 / 1.594 GB, free: 122.8 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)