Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004297/0.004297, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001012/0.001012, allocations: 197.2 kB / 16.68 MB, free: 5.93 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.267/1.267, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 293.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.917/0.917, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 99.84 kB / 0.6815 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4418/0.4435, allocations: 86.98 MB / 0.7664 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01518/0.4587, allocations: 15.52 MB / 0.7816 GB, free: 4.332 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006543/0.4653, allocations: 4.326 MB / 0.7858 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004803/0.4658, allocations: 15.88 kB / 0.7858 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008749/0.4667, allocations: 274.3 kB / 0.7861 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.4681, allocations: 0.6062 MB / 0.7866 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.4702, allocations: 0.7066 MB / 0.7873 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001506/0.4717, allocations: 1.036 MB / 0.7883 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005337/0.4722, allocations: 339.5 kB / 0.7887 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008072/0.4731, allocations: 426.3 kB / 0.7891 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.4735, allocations: 322.5 kB / 0.7894 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.4736, allocations: 24 kB / 0.7894 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.4749, allocations: 0.6278 MB / 0.79 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.475, allocations: 99.61 kB / 0.7901 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.4753, allocations: 234.7 kB / 0.7903 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009967/0.4763, allocations: 0.7658 MB / 0.7911 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4763, allocations: 4 kB / 0.7911 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4763, allocations: 0 / 0.7911 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.4763, allocations: 0 / 0.7911 GB, free: 10.54 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001291/0.4776, allocations: 0.8368 MB / 0.7919 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4777, allocations: 11.97 kB / 0.7919 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.4778, allocations: 52.38 kB / 0.792 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.4786, allocations: 437.4 kB / 0.7924 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.4786, allocations: 20.44 kB / 0.7924 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.4786, allocations: 28 kB / 0.7924 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.4791, allocations: 211.2 kB / 0.7926 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4791, allocations: 0 / 0.7926 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.4791, allocations: 11.94 kB / 0.7926 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.4792, allocations: 4 kB / 0.7927 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003571/0.4795, allocations: 173.6 kB / 0.7928 GB, free: 8.684 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.001445/0.481, allocations: 0.9417 MB / 0.7937 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.4813, allocations: 134.6 kB / 0.7939 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.4814, allocations: 68.81 kB / 0.7939 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.4817, allocations: 336.4 kB / 0.7943 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.4817, allocations: 30.56 kB / 0.7943 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.4817, allocations: 7.938 kB / 0.7943 GB, free: 7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.000592/0.4823, allocations: 233.1 kB / 0.7945 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4824, allocations: 55.41 kB / 0.7946 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.4829, allocations: 477.9 kB / 0.795 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.4829, allocations: 29.7 kB / 0.795 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.4831, allocations: 232.6 kB / 0.7953 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.4831, allocations: 47.36 kB / 0.7953 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.4832, allocations: 65.59 kB / 0.7954 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.4834, allocations: 354.7 kB / 0.7957 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.4836, allocations: 72.81 kB / 0.7958 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.4838, allocations: 157.2 kB / 0.7959 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.4842, allocations: 157.2 kB / 0.7961 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4842, allocations: 0 / 0.7961 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005256/0.4847, allocations: 260.9 kB / 0.7963 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.4847, allocations: 4 kB / 0.7963 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4847, allocations: 4 kB / 0.7963 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.4848, allocations: 4 kB / 0.7963 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.485, allocations: 47.97 kB / 0.7964 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.485, allocations: 3.984 kB / 0.7964 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.4853, allocations: 39.67 kB / 0.7964 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.4854, allocations: 11.98 kB / 0.7964 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002799/0.4856, allocations: 198.3 kB / 0.7966 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002373/0.4859, allocations: 168 kB / 0.7968 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003304/0.4862, allocations: 172.1 kB / 0.797 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.213e-06/0.4862, allocations: 4.125 kB / 0.797 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004767/0.4867, allocations: 249 kB / 0.7972 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.4867, allocations: 10.91 kB / 0.7972 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-06/0.4868, allocations: 0 / 0.7972 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.06e-06/0.4868, allocations: 4 kB / 0.7972 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.487, allocations: 48.03 kB / 0.7973 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.487, allocations: 3.938 kB / 0.7973 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.4873, allocations: 31.88 kB / 0.7973 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.4873, allocations: 12 kB / 0.7973 GB, free: 3.766 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0001161/0.4875, allocations: 196.1 kB / 0.7975 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.4875, allocations: 47.44 kB / 0.7975 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005367/0.4881, allocations: 245.2 kB / 0.7978 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.4881, allocations: 7.984 kB / 0.7978 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.4881, allocations: 0 / 0.7978 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4881, allocations: 0 / 0.7978 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009592/0.4891, allocations: 0.7073 MB / 0.7985 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4891, allocations: 4 kB / 0.7985 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.4892, allocations: 27.92 kB / 0.7985 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4892, allocations: 4 kB / 0.7985 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.4893, allocations: 4 kB / 0.7985 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.4893, allocations: 11.92 kB / 0.7985 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4893, allocations: 0 / 0.7985 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.4897, allocations: 334.5 kB / 0.7988 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4899, allocations: 144.6 kB / 0.799 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.468e-05/0.4899, allocations: 12 kB / 0.799 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.4901, allocations: 19.86 kB / 0.799 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.4902, allocations: 15.97 kB / 0.799 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.4902, allocations: 8 kB / 0.799 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003378/0.4906, allocations: 330.9 kB / 0.7993 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4906, allocations: 0 / 0.7993 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006409/0.4912, allocations: 199.7 kB / 0.7995 GB, free: 1.359 MB / 0.5606 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 (16): * Single equations (assignments): 14 * 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.001012/0.4922, allocations: 486.2 kB / 0.8 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006461/0.4929, allocations: 275.6 kB / 0.8003 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4929, allocations: 0 / 0.8003 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.4931, allocations: 87.83 kB / 0.8003 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.4941, allocations: 187.3 kB / 0.8005 GB, free: 488 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.4952, allocations: 0.7052 MB / 0.8012 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.4956, allocations: 0.8231 MB / 0.802 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002495/0.4959, allocations: 95.5 kB / 0.8021 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.657e-05/0.4959, allocations: 39.42 kB / 0.8021 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/0.496, allocations: 0 / 0.8021 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of Templates: time 0.01439/0.5103, allocations: 8.519 MB / 0.8105 GB, free: 6.371 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)