Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json 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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 103.9 kB / 16.4 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 193.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7415/0.7415, allocations: 122.9 MB / 414.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.8 kB / 0.568 GB, free: 28.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1372, allocations: 77.93 MB / 0.6441 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02098/0.1582, allocations: 17.43 MB / 0.6611 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006977/0.1653, allocations: 4.925 MB / 0.6659 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005653/0.1659, allocations: 11.94 kB / 0.6659 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008471/0.1667, allocations: 258.4 kB / 0.6662 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.1683, allocations: 0.6412 MB / 0.6668 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.1702, allocations: 0.7263 MB / 0.6675 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1715, allocations: 0.9741 MB / 0.6684 GB, free: 484 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005722/0.1721, allocations: 337.2 kB / 0.6688 GB, free: 140 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000851/0.173, allocations: 426.3 kB / 0.6692 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.1734, allocations: 310.6 kB / 0.6695 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.362e-05/0.1735, allocations: 28 kB / 0.6695 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.1748, allocations: 0.7331 MB / 0.6702 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.175, allocations: 135.5 kB / 0.6703 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.1753, allocations: 234.7 kB / 0.6706 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.1767, allocations: 0.8873 MB / 0.6714 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1767, allocations: 7.938 kB / 0.6714 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.904e-06/0.1768, allocations: 0 / 0.6714 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.845e-05/0.1768, allocations: 0 / 0.6714 GB, free: 13.39 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001616/0.1784, allocations: 0.8943 MB / 0.6723 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1784, allocations: 8.625 kB / 0.6723 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.722e-05/0.1785, allocations: 58.73 kB / 0.6724 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.1787, allocations: 68.55 kB / 0.6724 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007243/0.1794, allocations: 465.9 kB / 0.6729 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.1795, allocations: 24.56 kB / 0.6729 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.1795, allocations: 28 kB / 0.6729 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1801, allocations: 286.2 kB / 0.6732 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1801, allocations: 0 / 0.6732 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.1801, allocations: 11.98 kB / 0.6732 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1801, allocations: 8 kB / 0.6732 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.1806, allocations: 190.1 kB / 0.6734 GB, free: 11.25 MB / 0.5137 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.002051/0.1826, allocations: 1.476 MB / 0.6748 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.183, allocations: 162.6 kB / 0.675 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1831, allocations: 92.89 kB / 0.6751 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/0.1847, allocations: 1.272 MB / 0.6763 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.1847, allocations: 46.42 kB / 0.6764 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.1847, allocations: 0 / 0.6764 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006247/0.1854, allocations: 251 kB / 0.6766 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.1854, allocations: 55.39 kB / 0.6767 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006376/0.186, allocations: 0.577 MB / 0.6772 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.1861, allocations: 37.7 kB / 0.6773 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.1863, allocations: 276.4 kB / 0.6775 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.1864, allocations: 51.59 kB / 0.6776 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1865, allocations: 73.92 kB / 0.6777 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1866, allocations: 358.8 kB / 0.678 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1868, allocations: 81.88 kB / 0.6781 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.1872, allocations: 214.8 kB / 0.6783 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003869/0.1876, allocations: 229.9 kB / 0.6785 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1876, allocations: 3.938 kB / 0.6785 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005748/0.1881, allocations: 311 kB / 0.6788 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1882, allocations: 11.98 kB / 0.6788 GB, free: 5.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1882, allocations: 4.25 kB / 0.6788 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1882, allocations: 4 kB / 0.6788 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.1885, allocations: 63.91 kB / 0.6789 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1885, allocations: 7.938 kB / 0.6789 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.1888, allocations: 43.77 kB / 0.6789 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.1888, allocations: 19.98 kB / 0.6789 GB, free: 5.109 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002996/0.1891, allocations: 212.6 kB / 0.6791 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002818/0.1894, allocations: 214.1 kB / 0.6794 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003721/0.1898, allocations: 230.7 kB / 0.6796 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.1898, allocations: 0 / 0.6796 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005697/0.1904, allocations: 309 kB / 0.6799 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.1904, allocations: 11.94 kB / 0.6799 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1904, allocations: 8.25 kB / 0.6799 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.889e-06/0.1904, allocations: 7.938 kB / 0.6799 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.1907, allocations: 63.91 kB / 0.68 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1907, allocations: 4 kB / 0.68 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.191, allocations: 36.05 kB / 0.68 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.1911, allocations: 12 kB / 0.68 GB, free: 3.934 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.1912, allocations: 212.9 kB / 0.6802 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.1913, allocations: 59.59 kB / 0.6803 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005512/0.1919, allocations: 262 kB / 0.6805 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.1919, allocations: 4 kB / 0.6805 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1919, allocations: 0 / 0.6805 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1919, allocations: 0 / 0.6805 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009893/0.1929, allocations: 0.7372 MB / 0.6812 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.1929, allocations: 4 kB / 0.6812 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.193, allocations: 31.98 kB / 0.6813 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.193, allocations: 0 / 0.6813 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.1931, allocations: 7.984 kB / 0.6813 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1931, allocations: 0 / 0.6813 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1931, allocations: 12.06 kB / 0.6813 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.1935, allocations: 350.5 kB / 0.6816 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.1937, allocations: 152.7 kB / 0.6818 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.1938, allocations: 4 kB / 0.6818 GB, free: 2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.194, allocations: 11.98 kB / 0.6818 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.194, allocations: 27.86 kB / 0.6818 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.1941, allocations: 4 kB / 0.6818 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004368/0.1945, allocations: 418.8 kB / 0.6822 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1945, allocations: 0 / 0.6822 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007198/0.1953, allocations: 231.5 kB / 0.6824 GB, free: 1.324 MB / 0.5137 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001789/0.1971, allocations: 1.272 MB / 0.6837 GB, free: 156 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007429/0.1978, allocations: 329.6 kB / 0.684 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1978, allocations: 1 kB / 0.684 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.198, allocations: 91.27 kB / 0.6841 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.1993, allocations: 247.1 kB / 0.6843 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004807/0.2041, allocations: 3.952 MB / 0.6882 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.2045, allocations: 0.8428 MB / 0.689 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003292/0.2048, allocations: 108.2 kB / 0.6891 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.205, allocations: 163.4 kB / 0.6893 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of SimCode: time 3e-07/0.205, allocations: 0 / 0.6893 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0381/0.2431, allocations: 15.04 MB / 0.7039 GB, free: 11.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.367/8.61, allocations: 16.08 kB / 0.704 GB, free: 11.41 MB / 0.545 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)