Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.161/1.161, allocations: 251.5 MB / 266.7 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008347/0.0008347, allocations: 176.8 kB / 325.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205 MB / 0.576 GB, free: 21.01 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006434/0.0006431, allocations: 85.72 kB / 0.6797 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002726, allocations: 12.75 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1364, allocations: 105.4 MB / 0.8962 GB, free: 68.12 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.01493/0.1514, allocations: 26.13 MB / 0.9217 GB, free: 41.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.009772/0.1612, allocations: 10.85 MB / 0.9323 GB, free: 31.02 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000722/0.162, allocations: 35.69 kB / 0.9323 GB, free: 30.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0007012/0.1627, allocations: 294.2 kB / 0.9326 GB, free: 30.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.1645, allocations: 1.063 MB / 0.9337 GB, free: 29.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.1662, allocations: 0.9348 MB / 0.9346 GB, free: 28.71 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00175/0.1679, allocations: 3.207 MB / 0.9377 GB, free: 25.49 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006034/0.1685, allocations: 0.8239 MB / 0.9385 GB, free: 24.65 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000942/0.1695, allocations: 1.066 MB / 0.9396 GB, free: 23.58 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008721/0.1704, allocations: 1.004 MB / 0.9405 GB, free: 22.57 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.1705, allocations: 40 kB / 0.9406 GB, free: 22.53 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.1716, allocations: 0.9007 MB / 0.9415 GB, free: 21.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.1717, allocations: 223 kB / 0.9417 GB, free: 21.41 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.1721, allocations: 0.4974 MB / 0.9422 GB, free: 20.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1731, allocations: 1.546 MB / 0.9437 GB, free: 19.36 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1731, allocations: 0 / 0.9437 GB, free: 19.36 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1731, allocations: 0 / 0.9437 GB, free: 19.36 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.487e-06/0.1731, allocations: 0 / 0.9437 GB, free: 19.36 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001317/0.1744, allocations: 1.149 MB / 0.9448 GB, free: 18.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.1745, allocations: 16.03 kB / 0.9448 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.272e-05/0.1745, allocations: 86.7 kB / 0.9449 GB, free: 18.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.1747, allocations: 123.4 kB / 0.945 GB, free: 17.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.1754, allocations: 0.6584 MB / 0.9456 GB, free: 17.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.1754, allocations: 57 kB / 0.9457 GB, free: 17.17 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.1755, allocations: 87.94 kB / 0.9458 GB, free: 17.09 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006487/0.1762, allocations: 0.557 MB / 0.9463 GB, free: 16.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1762, allocations: 3.938 kB / 0.9463 GB, free: 16.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.1763, allocations: 20 kB / 0.9464 GB, free: 16.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1763, allocations: 12 kB / 0.9464 GB, free: 16.46 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005966/0.1769, allocations: 423.6 kB / 0.9468 GB, free: 16.05 MB / 0.6042 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.002498/0.1794, allocations: 2.521 MB / 0.9492 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.1798, allocations: 282.4 kB / 0.9495 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.18, allocations: 132.8 kB / 0.9496 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.1802, allocations: 344.4 kB / 0.95 GB, free: 12.56 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.1802, allocations: 38.56 kB / 0.95 GB, free: 12.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.1802, allocations: 4 kB / 0.95 GB, free: 12.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=29): time 0.0008529/0.1811, allocations: 497.8 kB / 0.9505 GB, free: 12.02 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.916e-05/0.1811, allocations: 51.41 kB / 0.9505 GB, free: 11.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/0.1817, allocations: 0.7553 MB / 0.9513 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.632e-05/0.1817, allocations: 41.7 kB / 0.9513 GB, free: 11.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.1819, allocations: 432.8 kB / 0.9517 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.182, allocations: 106.5 kB / 0.9518 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/0.1821, allocations: 49.69 kB / 0.9519 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.863e-05/0.1821, allocations: 329.9 kB / 0.9522 GB, free: 10.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.1824, allocations: 173 kB / 0.9523 GB, free: 10.05 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006574/0.183, allocations: 0.7868 MB / 0.9531 GB, free: 9.062 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.1836, allocations: 411.6 kB / 0.9535 GB, free: 8.637 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1836, allocations: 0 / 0.9535 GB, free: 8.637 MB / 0.6042 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008436/0.1845, allocations: 0.5731 MB / 0.9541 GB, free: 8.059 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.1845, allocations: 146.9 kB / 0.9542 GB, free: 7.883 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1845, allocations: 3.984 kB / 0.9542 GB, free: 7.879 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1845, allocations: 7.938 kB / 0.9542 GB, free: 7.871 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009769/0.1855, allocations: 203.7 kB / 0.9544 GB, free: 7.672 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006738/0.1862, allocations: 2.371 MB / 0.9567 GB, free: 5.207 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002262/0.1885, allocations: 0.6946 MB / 0.9574 GB, free: 4.508 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.1885, allocations: 24.2 kB / 0.9574 GB, free: 4.484 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.1886, allocations: 4 kB / 0.9574 GB, free: 4.48 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006645/0.1892, allocations: 450.1 kB / 0.9579 GB, free: 4.039 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.1892, allocations: 4 kB / 0.9579 GB, free: 4.035 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.399e-06/0.1892, allocations: 7.938 kB / 0.9579 GB, free: 4.027 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.1897, allocations: 135.8 kB / 0.958 GB, free: 3.895 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1897, allocations: 4 kB / 0.958 GB, free: 3.891 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/0.1918, allocations: 0.6791 MB / 0.9587 GB, free: 3.211 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.1919, allocations: 20 kB / 0.9587 GB, free: 3.191 MB / 0.6042 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002219/0.1921, allocations: 297.5 kB / 0.959 GB, free: 2.891 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.458e-05/0.1922, allocations: 83.09 kB / 0.959 GB, free: 2.809 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007382/0.1929, allocations: 497.4 kB / 0.9595 GB, free: 2.316 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1929, allocations: 4 kB / 0.9595 GB, free: 2.312 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.193, allocations: 0 / 0.9595 GB, free: 2.312 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.193, allocations: 3.984 kB / 0.9595 GB, free: 2.309 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.1942, allocations: 1.139 MB / 0.9606 GB, free: 1.102 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1942, allocations: 3.984 kB / 0.9606 GB, free: 1.098 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.1946, allocations: 108 kB / 0.9607 GB, free: 0.9922 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.1946, allocations: 0 / 0.9607 GB, free: 0.9922 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.1946, allocations: 12 kB / 0.9608 GB, free: 0.9805 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007097/0.1953, allocations: 2.352 MB / 0.9631 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1953, allocations: 0 / 0.9631 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000675/0.196, allocations: 0.5406 MB / 0.9636 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.1962, allocations: 184 kB / 0.9638 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.1963, allocations: 11.94 kB / 0.9638 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/0.1967, allocations: 63.78 kB / 0.9638 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.1967, allocations: 19.97 kB / 0.9638 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.1968, allocations: 12 kB / 0.9639 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004849/0.1973, allocations: 0.5146 MB / 0.9644 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1973, allocations: 0 / 0.9644 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0009511/0.1982, allocations: 467.2 kB / 0.9648 GB, free: 12.69 MB / 0.6198 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001395/0.1996, allocations: 1.299 MB / 0.9661 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001721/0.2014, allocations: 0.7357 MB / 0.9668 GB, free: 10.63 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2014, allocations: 384 / 0.9668 GB, free: 10.63 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.2018, allocations: 207.8 kB / 0.967 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.2038, allocations: 412 kB / 0.9674 GB, free: 10.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006891/0.2107, allocations: 6.235 MB / 0.9735 GB, free: 3.566 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.2111, allocations: 0.9697 MB / 0.9744 GB, free: 2.57 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0005915/0.2117, allocations: 170.1 kB / 0.9746 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.212, allocations: 315.3 kB / 0.9749 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of SimCode: time 2.81e-07/0.212, allocations: 0 / 0.9749 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5595/0.7715, allocations: 27.07 MB / 1.001 GB, free: 7.422 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.7718, allocations: 290.8 kB / 1.002 GB, free: 7.039 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.088/3.86, allocations: 7.172 kB / 1.002 GB, free: 7.035 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)