Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.79/1.79, allocations: 289.7 MB / 302.2 MB, free: 2.074 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001492/0.001492, allocations: 179.2 kB / 371.6 MB, free: 3.336 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.1 MB / 0.6309 GB, free: 11.73 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009302/0.0009302, allocations: 96.41 kB / 0.745 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.912e-05/4.913e-05, allocations: 4 kB / 0.8663 GB, free: 14.94 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3101, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.284/1.594, allocations: 402.2 MB / 1.373 GB, free: 10.62 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/1.594, allocations: 97.88 kB / 1.373 GB, free: 10.57 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.336/3.93, allocations: 429.2 MB / 1.792 GB, free: 190.1 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.883e-06/3.93, allocations: 3.312 kB / 1.792 GB, free: 190.1 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001217/3.93, allocations: 33.23 kB / 1.792 GB, free: 190.1 MB / 0.948 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.003595/3.934, allocations: 1.321 MB / 1.793 GB, free: 189.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/3.934, allocations: 9.75 kB / 1.793 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/3.934, allocations: 104.9 kB / 1.793 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006858/3.935, allocations: 146.9 kB / 1.793 GB, free: 189.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002131/3.937, allocations: 0.8161 MB / 1.794 GB, free: 189.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.399e-05/3.937, allocations: 81.03 kB / 1.794 GB, free: 189.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002262/3.937, allocations: 125.3 kB / 1.794 GB, free: 189.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/3.938, allocations: 0.592 MB / 1.795 GB, free: 189.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/3.938, allocations: 5.188 kB / 1.795 GB, free: 189.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.903e-05/3.938, allocations: 24.09 kB / 1.795 GB, free: 189.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/3.938, allocations: 14.88 kB / 1.795 GB, free: 189.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007034/3.939, allocations: 422.2 kB / 1.795 GB, free: 189.2 MB / 0.948 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.005642/3.945, allocations: 3.065 MB / 1.798 GB, free: 187.9 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005411/3.945, allocations: 313.8 kB / 1.799 GB, free: 187.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/3.945, allocations: 131.9 kB / 1.799 GB, free: 187.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/3.946, allocations: 344 kB / 1.799 GB, free: 187.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/3.946, allocations: 40.42 kB / 1.799 GB, free: 187.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 3.096e-06/3.946, allocations: 0 / 1.799 GB, free: 187.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.001347/3.947, allocations: 400.7 kB / 1.8 GB, free: 187.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/3.947, allocations: 63.67 kB / 1.8 GB, free: 187.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/3.948, allocations: 0.7557 MB / 1.8 GB, free: 187.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005013/3.949, allocations: 59.73 kB / 1.8 GB, free: 187.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/3.949, allocations: 0.5496 MB / 1.801 GB, free: 186.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 9.52e-05/3.949, allocations: 119.7 kB / 1.801 GB, free: 186.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/3.949, allocations: 7.812 kB / 1.801 GB, free: 186.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.281e-05/3.949, allocations: 330.3 kB / 1.801 GB, free: 186.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/3.95, allocations: 156.4 kB / 1.802 GB, free: 186.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/3.951, allocations: 1.407 MB / 1.803 GB, free: 185.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/3.951, allocations: 300.8 kB / 1.803 GB, free: 185.5 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/3.952, allocations: 0 / 1.803 GB, free: 185.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001306/3.953, allocations: 0.5938 MB / 1.804 GB, free: 185.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001784/3.953, allocations: 0.8185 MB / 1.805 GB, free: 184.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/3.953, allocations: 2.062 kB / 1.805 GB, free: 184.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/3.953, allocations: 5.562 kB / 1.805 GB, free: 184.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/3.954, allocations: 196.3 kB / 1.805 GB, free: 184.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/3.956, allocations: 2.965 MB / 1.808 GB, free: 181.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/3.96, allocations: 0.9119 MB / 1.809 GB, free: 181.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/3.96, allocations: 27.16 kB / 1.809 GB, free: 181.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/3.96, allocations: 5.75 kB / 1.809 GB, free: 181.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009264/3.961, allocations: 471.2 kB / 1.809 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/3.961, allocations: 3.062 kB / 1.809 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/3.961, allocations: 4.969 kB / 1.809 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006647/3.962, allocations: 164 kB / 1.809 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/3.962, allocations: 4 kB / 1.809 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003934/3.966, allocations: 0.903 MB / 1.81 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/3.966, allocations: 25.97 kB / 1.81 GB, free: 181.6 MB / 0.948 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.0005922/3.967, allocations: 158.9 kB / 1.81 GB, free: 181.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/3.967, allocations: 98.22 kB / 1.81 GB, free: 181.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/3.968, allocations: 0.497 MB / 1.811 GB, free: 181.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/3.968, allocations: 2.844 kB / 1.811 GB, free: 181.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/3.968, allocations: 0 / 1.811 GB, free: 181.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/3.968, allocations: 6 kB / 1.811 GB, free: 181.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/3.97, allocations: 1.231 MB / 1.812 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/3.97, allocations: 3.031 kB / 1.812 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005737/3.971, allocations: 111.8 kB / 1.812 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/3.971, allocations: 7.047 kB / 1.812 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/3.971, allocations: 14.62 kB / 1.812 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009529/3.972, allocations: 2.943 MB / 1.815 GB, free: 178.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/3.972, allocations: 9.359 kB / 1.815 GB, free: 178.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007919/3.973, allocations: 0.5953 MB / 1.816 GB, free: 177.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004219/3.973, allocations: 218 kB / 1.816 GB, free: 177.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.806e-05/3.973, allocations: 9.781 kB / 1.816 GB, free: 177.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005841/3.974, allocations: 77.95 kB / 1.816 GB, free: 177.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/3.974, allocations: 28.77 kB / 1.816 GB, free: 177.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/3.974, allocations: 18.47 kB / 1.816 GB, free: 177.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.000742/3.975, allocations: 0.5758 MB / 1.817 GB, free: 177.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.51e-07/3.975, allocations: 0 / 1.817 GB, free: 177.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002447/3.977, allocations: 0.6081 MB / 1.817 GB, free: 177.5 MB / 0.948 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.002134/3.979, allocations: 1.815 MB / 1.819 GB, free: 176.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002703/3.982, allocations: 0.7851 MB / 1.82 GB, free: 176.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/3.982, allocations: 0 / 1.82 GB, free: 176.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005087/3.983, allocations: 208.2 kB / 1.82 GB, free: 176.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/3.985, allocations: 483.9 kB / 1.82 GB, free: 176.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003604/3.989, allocations: 1.319 MB / 1.822 GB, free: 175.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/3.99, allocations: 1.045 MB / 1.823 GB, free: 175.2 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001747/3.991, allocations: 266.5 kB / 1.823 GB, free: 175.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004096/3.992, allocations: 355.3 kB / 1.823 GB, free: 175.2 MB / 0.948 GB Notification: Performance of SimCode: time 1.142e-06/3.992, allocations: 0 / 1.823 GB, free: 175.2 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0853/4.077, allocations: 38.7 MB / 1.861 GB, free: 174.1 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002659/4.077, allocations: 220.2 kB / 1.861 GB, free: 173.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.274/7.352, allocations: 1.75 kB / 1.861 GB, free: 173.9 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)