Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.0007947/0.0007947, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005458/0.005458, allocations: 170.8 kB / 16.27 MB, free: 6.652 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.264/1.264, allocations: 223.2 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001711/0.001711, allocations: 273.9 kB / 291.7 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9196/0.9196, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003862, allocations: 14.5 kB / 0.5988 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1426, allocations: 88.55 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3655/0.5081, allocations: 110.1 MB / 0.7928 GB, free: 25.58 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02262/0.5308, allocations: 20.11 MB / 0.8124 GB, free: 21.07 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00336/0.5342, allocations: 95.47 kB / 0.8125 GB, free: 21.03 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.5371, allocations: 1.036 MB / 0.8135 GB, free: 20.43 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008375/0.5455, allocations: 3.383 MB / 0.8168 GB, free: 18.43 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006339/0.5518, allocations: 2.868 MB / 0.8196 GB, free: 16.81 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01179/0.5636, allocations: 9.526 MB / 0.8289 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003606/0.5673, allocations: 2.085 MB / 0.831 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005317/0.5726, allocations: 2.322 MB / 0.8332 GB, free: 9.082 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004098/0.5767, allocations: 2.037 MB / 0.8352 GB, free: 7.91 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004616/0.5772, allocations: 89.31 kB / 0.8353 GB, free: 7.91 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003241/0.5805, allocations: 1.453 MB / 0.8367 GB, free: 7.121 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003972/0.5809, allocations: 0.513 MB / 0.8372 GB, free: 6.758 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.5821, allocations: 1.339 MB / 0.8385 GB, free: 5.879 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003247/0.5853, allocations: 4.153 MB / 0.8426 GB, free: 3.008 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.5853, allocations: 3 kB / 0.8426 GB, free: 3.008 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5853, allocations: 0 / 0.8426 GB, free: 3.008 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.073e-05/0.5854, allocations: 0 / 0.8426 GB, free: 3.008 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003466/0.5888, allocations: 2.69 MB / 0.8452 GB, free: 1.004 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.5889, allocations: 9.781 kB / 0.8452 GB, free: 1.004 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002138/0.5891, allocations: 227.8 kB / 0.8454 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000538/0.5897, allocations: 323 kB / 0.8457 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002948/0.5926, allocations: 2.155 MB / 0.8478 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.534e-05/0.5927, allocations: 127 kB / 0.848 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002273/0.5929, allocations: 168 kB / 0.8481 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.5955, allocations: 1.612 MB / 0.8497 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.698e-05/0.5956, allocations: 7.922 kB / 0.8497 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.5957, allocations: 64 kB / 0.8498 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/0.5958, allocations: 39.94 kB / 0.8498 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001994/0.5978, allocations: 1.159 MB / 0.8509 GB, free: 11.62 MB / 0.5606 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.009805/0.6076, allocations: 7.904 MB / 0.8587 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007727/0.6084, allocations: 489.8 kB / 0.8591 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005021/0.6089, allocations: 323 kB / 0.8594 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006163/0.6095, allocations: 0.7602 MB / 0.8602 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.6096, allocations: 39.12 kB / 0.8602 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.475e-06/0.6096, allocations: 0 / 0.8602 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.001897/0.6115, allocations: 1.008 MB / 0.8612 GB, free: 432 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.6115, allocations: 63.91 kB / 0.8613 GB, free: 356 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.6145, allocations: 2.312 MB / 0.8635 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.6146, allocations: 45.7 kB / 0.8636 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00093/0.6155, allocations: 1.157 MB / 0.8647 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.6157, allocations: 212.9 kB / 0.8649 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.6159, allocations: 109.7 kB / 0.865 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.616, allocations: 345.9 kB / 0.8653 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.6167, allocations: 358.4 kB / 0.8657 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009244/0.6176, allocations: 0.7502 MB / 0.8664 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.619, allocations: 0.9941 MB / 0.8674 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.619, allocations: 0 / 0.8674 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002137/0.6212, allocations: 1.307 MB / 0.8687 GB, free: 8.465 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002313/0.6214, allocations: 339 kB / 0.869 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.6214, allocations: 8 kB / 0.869 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.6215, allocations: 15.98 kB / 0.869 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009375/0.6224, allocations: 259.5 kB / 0.8692 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.6224, allocations: 19.94 kB / 0.8693 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.6241, allocations: 250.2 kB / 0.8695 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.301e-05/0.6242, allocations: 51.98 kB / 0.8696 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-06/0.6242, allocations: 4 kB / 0.8696 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001686/0.6259, allocations: 1.03 MB / 0.8706 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.6259, allocations: 8 kB / 0.8706 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.6259, allocations: 16 kB / 0.8706 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/0.6268, allocations: 260.1 kB / 0.8708 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.6268, allocations: 23.92 kB / 0.8709 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.6283, allocations: 214.6 kB / 0.8711 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.6284, allocations: 51.98 kB / 0.8711 GB, free: 5.824 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.000903/0.6293, allocations: 0.5762 MB / 0.8717 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.6296, allocations: 244.9 kB / 0.8719 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.6312, allocations: 0.8958 MB / 0.8728 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.6312, allocations: 12 kB / 0.8728 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6312, allocations: 4 kB / 0.8728 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009979/0.6322, allocations: 0.6892 MB / 0.8735 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.6359, allocations: 2.582 MB / 0.876 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.6359, allocations: 4 kB / 0.876 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005029/0.6364, allocations: 127.8 kB / 0.8761 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.6364, allocations: 0 / 0.8761 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.6365, allocations: 20.08 kB / 0.8761 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.6365, allocations: 8 kB / 0.8761 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.6365, allocations: 0 / 0.8761 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.6384, allocations: 1.333 MB / 0.8774 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/0.6391, allocations: 453.8 kB / 0.8779 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.6393, allocations: 16 kB / 0.8779 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.6404, allocations: 119.8 kB / 0.878 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.6405, allocations: 48.44 kB / 0.8781 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.6406, allocations: 31.92 kB / 0.8781 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002072/0.6426, allocations: 1.554 MB / 0.8796 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.9e-07/0.6427, allocations: 0 / 0.8796 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00246/0.6451, allocations: 1.099 MB / 0.8807 GB, free: 11.85 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.003565/0.6487, allocations: 2.518 MB / 0.8831 GB, free: 9.438 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002355/0.6511, allocations: 1.378 MB / 0.8845 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6511, allocations: 0 / 0.8845 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.6516, allocations: 331 kB / 0.8848 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006876/0.6585, allocations: 1.388 MB / 0.8862 GB, free: 6.371 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02988/0.6884, allocations: 18.24 MB / 0.904 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.6896, allocations: 1.59 MB / 0.9055 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002053/0.6917, allocations: 0.4896 MB / 0.906 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.6929, allocations: 0.9641 MB / 0.9069 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of SimCode: time 1.132e-06/0.6929, allocations: 0 / 0.9069 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09471/0.7876, allocations: 63.75 MB / 0.9692 GB, free: 0.5859 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/0.7879, allocations: 264.9 kB / 0.9694 GB, free: 240 kB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.474/5.262, allocations: 0 / 0.9694 GB, free: 240 kB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)