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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8627/0.8627, allocations: 141.8 MB / 149.3 MB, free: 9.199 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.0009986/0.0009986, allocations: 180.9 kB / 182.2 MB, free: 9.449 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.505/1.505, allocations: 221.5 MB / 436.4 MB, free: 13.25 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.0009211/0.0009212, allocations: 91.98 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001799/0.001799, allocations: 283.5 kB / 0.5889 GB, free: 54.63 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.86e-05/1.864e-05, allocations: 7.984 kB / 0.6765 GB, free: 12.79 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4725/0.4725, allocations: 82.78 MB / 0.7574 GB, free: 31.99 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8703/1.343, allocations: 358.1 MB / 1.107 GB, free: 6.742 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/1.343, allocations: 99 kB / 1.107 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.585/2.928, allocations: 434.3 MB / 1.531 GB, free: 166.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.192e-06/2.928, allocations: 0 / 1.531 GB, free: 166.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.996e-05/2.928, allocations: 41.89 kB / 1.531 GB, free: 166.4 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.002557/2.931, allocations: 1.318 MB / 1.533 GB, free: 165.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/2.931, allocations: 11.08 kB / 1.533 GB, free: 165.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003316/2.931, allocations: 148.3 kB / 1.533 GB, free: 165.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/2.933, allocations: 0.8307 MB / 1.534 GB, free: 165.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/2.933, allocations: 18.62 kB / 1.534 GB, free: 165.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/2.933, allocations: 79.97 kB / 1.534 GB, free: 165.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006057/2.933, allocations: 393.9 kB / 1.534 GB, free: 165.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007345/2.934, allocations: 0.5152 MB / 1.535 GB, free: 165.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/2.934, allocations: 0 / 1.535 GB, free: 165.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/2.934, allocations: 0 / 1.535 GB, free: 165.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/2.934, allocations: 14.19 kB / 1.535 GB, free: 165.3 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.004057/2.938, allocations: 2.929 MB / 1.537 GB, free: 164 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/2.939, allocations: 317.3 kB / 1.538 GB, free: 164 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/2.939, allocations: 128.7 kB / 1.538 GB, free: 164 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002528/2.939, allocations: 342.9 kB / 1.538 GB, free: 163.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/2.939, allocations: 42.88 kB / 1.538 GB, free: 163.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/2.939, allocations: 0 / 1.538 GB, free: 163.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.001239/2.941, allocations: 476.9 kB / 1.539 GB, free: 163.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/2.941, allocations: 59.28 kB / 1.539 GB, free: 163.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006391/2.941, allocations: 0.6374 MB / 1.539 GB, free: 163.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001192/2.941, allocations: 35.11 kB / 1.539 GB, free: 163.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/2.942, allocations: 0.5437 MB / 1.54 GB, free: 163 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/2.942, allocations: 103.2 kB / 1.54 GB, free: 162.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/2.942, allocations: 3.969 kB / 1.54 GB, free: 162.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.213e-05/2.942, allocations: 335.4 kB / 1.54 GB, free: 162.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/2.942, allocations: 152 kB / 1.541 GB, free: 162.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/2.943, allocations: 1.365 MB / 1.542 GB, free: 161.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008203/2.944, allocations: 383.2 kB / 1.542 GB, free: 161.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/2.944, allocations: 3.969 kB / 1.542 GB, free: 161.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001358/2.945, allocations: 0.647 MB / 1.543 GB, free: 161.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/2.945, allocations: 0.8111 MB / 1.544 GB, free: 160.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/2.946, allocations: 5.969 kB / 1.544 GB, free: 160.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/2.946, allocations: 10.73 kB / 1.544 GB, free: 160.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/2.947, allocations: 203.3 kB / 1.544 GB, free: 160.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/2.948, allocations: 2.987 MB / 1.547 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/2.951, allocations: 0.8697 MB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.287e-05/2.951, allocations: 29.61 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/2.951, allocations: 4.906 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001073/2.952, allocations: 490.7 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/2.952, allocations: 3.969 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.835e-06/2.952, allocations: 3.906 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/2.953, allocations: 155.4 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/2.953, allocations: 5.031 kB / 1.548 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003436/2.957, allocations: 0.8704 MB / 1.549 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/2.957, allocations: 28.31 kB / 1.549 GB, free: 157.6 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.0003515/2.957, allocations: 143.9 kB / 1.549 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/2.957, allocations: 87.12 kB / 1.549 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/2.959, allocations: 0.5414 MB / 1.55 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/2.959, allocations: 6.625 kB / 1.55 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/2.959, allocations: 0 / 1.55 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/2.959, allocations: 0 / 1.55 GB, free: 157.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/2.961, allocations: 1.213 MB / 1.551 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/2.961, allocations: 9.047 kB / 1.551 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/2.961, allocations: 121.4 kB / 1.551 GB, free: 156.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/2.961, allocations: 2.219 kB / 1.551 GB, free: 156.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/2.961, allocations: 14.89 kB / 1.551 GB, free: 156.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008007/2.962, allocations: 2.951 MB / 1.554 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/2.962, allocations: 0 / 1.554 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/2.963, allocations: 0.6465 MB / 1.555 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004155/2.964, allocations: 215.8 kB / 1.555 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-05/2.964, allocations: 3.953 kB / 1.555 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000569/2.964, allocations: 71.14 kB / 1.555 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/2.964, allocations: 29.88 kB / 1.555 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/2.965, allocations: 18.28 kB / 1.555 GB, free: 153.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006858/2.965, allocations: 484.7 kB / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.673e-06/2.965, allocations: 0 / 1.556 GB, free: 153.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002475/2.968, allocations: 0.5852 MB / 1.556 GB, free: 153.1 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.001192/2.969, allocations: 0.4949 MB / 1.557 GB, free: 152.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002535/2.971, allocations: 0.7472 MB / 1.557 GB, free: 152.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/2.971, allocations: 0 / 1.557 GB, free: 152.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004151/2.972, allocations: 203.6 kB / 1.558 GB, free: 152.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/2.974, allocations: 392.6 kB / 1.558 GB, free: 152.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/2.976, allocations: 1.028 MB / 1.559 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/2.977, allocations: 1.052 MB / 1.56 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002071/2.979, allocations: 247.4 kB / 1.56 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001742/2.979, allocations: 61.61 kB / 1.56 GB, free: 151.3 MB / 0.698 GB Notification: Performance of SimCode: time 2.144e-06/2.979, allocations: 3.938 kB / 1.56 GB, free: 151.3 MB / 0.698 GB Notification: Performance of Templates: time 0.03683/3.016, allocations: 24.55 MB / 1.584 GB, free: 132.5 MB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)