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.00177/0.00177, allocations: 110.2 kB / 16.41 MB, free: 6.5 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.001839/0.001839, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.409/1.409, allocations: 222.9 MB / 241 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.002529/0.002529, allocations: 297.5 kB / 291.5 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 1.004/1.004, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002791/0.002791, allocations: 95.84 kB / 0.6821 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4517/0.4545, allocations: 86.98 MB / 0.7671 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01823/0.4727, allocations: 15.55 MB / 0.7822 GB, free: 4.223 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006757/0.4795, allocations: 4.342 MB / 0.7865 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004739/0.4799, allocations: 11.94 kB / 0.7865 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008704/0.4808, allocations: 274.3 kB / 0.7868 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.4822, allocations: 0.629 MB / 0.7874 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.4842, allocations: 0.7129 MB / 0.7881 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001472/0.4856, allocations: 1.028 MB / 0.7891 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004912/0.4861, allocations: 301.5 kB / 0.7894 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007464/0.4869, allocations: 430.3 kB / 0.7898 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.4873, allocations: 322.5 kB / 0.7901 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.585e-05/0.4874, allocations: 28 kB / 0.7901 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.4886, allocations: 0.6317 MB / 0.7907 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.4887, allocations: 99.59 kB / 0.7908 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002375/0.4889, allocations: 226.7 kB / 0.791 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.4901, allocations: 0.7762 MB / 0.7918 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4901, allocations: 4 kB / 0.7918 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4901, allocations: 0 / 0.7918 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.4901, allocations: 0 / 0.7918 GB, free: 10.42 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.001353/0.4915, allocations: 0.8554 MB / 0.7926 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4915, allocations: 8.031 kB / 0.7926 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.4916, allocations: 60.61 kB / 0.7927 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000662/0.4923, allocations: 433.8 kB / 0.7931 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.4923, allocations: 20.44 kB / 0.7931 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.4924, allocations: 31.98 kB / 0.7932 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.4928, allocations: 215.2 kB / 0.7934 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4928, allocations: 0 / 0.7934 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.4928, allocations: 8 kB / 0.7934 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.4929, allocations: 4 kB / 0.7934 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.4933, allocations: 165.6 kB / 0.7935 GB, free: 8.547 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.001688/0.4949, allocations: 0.9421 MB / 0.7945 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.4952, allocations: 126.5 kB / 0.7946 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.4954, allocations: 68.81 kB / 0.7946 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003137/0.4957, allocations: 340.5 kB / 0.795 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.4958, allocations: 34.56 kB / 0.795 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.4958, allocations: 4 kB / 0.795 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0006484/0.4964, allocations: 236.8 kB / 0.7952 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4965, allocations: 55.39 kB / 0.7953 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.497, allocations: 489.9 kB / 0.7957 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.4971, allocations: 29.7 kB / 0.7958 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.4973, allocations: 232.7 kB / 0.796 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.4973, allocations: 47.58 kB / 0.796 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.921e-05/0.4974, allocations: 69.64 kB / 0.7961 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4976, allocations: 350.7 kB / 0.7964 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.4978, allocations: 72.81 kB / 0.7965 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.4981, allocations: 154.7 kB / 0.7967 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.4984, allocations: 170.4 kB / 0.7968 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4984, allocations: 3.938 kB / 0.7968 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005575/0.499, allocations: 252.4 kB / 0.7971 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.499, allocations: 8 kB / 0.7971 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.499, allocations: 0 / 0.7971 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.499, allocations: 4 kB / 0.7971 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.4993, allocations: 43.91 kB / 0.7971 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.4993, allocations: 7.984 kB / 0.7971 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.4996, allocations: 27.88 kB / 0.7972 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.4996, allocations: 15.98 kB / 0.7972 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003162/0.5, allocations: 198.3 kB / 0.7974 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002668/0.5002, allocations: 157.4 kB / 0.7975 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003575/0.5006, allocations: 176.1 kB / 0.7977 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.083e-06/0.5006, allocations: 0 / 0.7977 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005333/0.5011, allocations: 249.2 kB / 0.7979 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.5011, allocations: 11.94 kB / 0.7979 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-06/0.5011, allocations: 0 / 0.7979 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.5011, allocations: 4.062 kB / 0.7979 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.5014, allocations: 51.91 kB / 0.798 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.5014, allocations: 4 kB / 0.798 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.5017, allocations: 39.84 kB / 0.798 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.5017, allocations: 8 kB / 0.798 GB, free: 3.621 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.0001353/0.5019, allocations: 196.1 kB / 0.7982 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.786e-05/0.5019, allocations: 43.72 kB / 0.7983 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005731/0.5025, allocations: 253.2 kB / 0.7985 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.5025, allocations: 4 kB / 0.7985 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5025, allocations: 0 / 0.7985 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5025, allocations: 3.984 kB / 0.7985 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.5036, allocations: 0.7005 MB / 0.7992 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5036, allocations: 0 / 0.7992 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.5038, allocations: 31.92 kB / 0.7992 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.5038, allocations: 4.188 kB / 0.7992 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.5038, allocations: 96 / 0.7992 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.5038, allocations: 11.88 kB / 0.7992 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5038, allocations: 0 / 0.7992 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005265/0.5043, allocations: 354.6 kB / 0.7996 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.5045, allocations: 140.7 kB / 0.7997 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.5045, allocations: 11.98 kB / 0.7997 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5047, allocations: 15.92 kB / 0.7997 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.5048, allocations: 15.92 kB / 0.7997 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.5048, allocations: 8 kB / 0.7998 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003897/0.5052, allocations: 334.9 kB / 0.8001 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.5052, allocations: 0 / 0.8001 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006854/0.5059, allocations: 203.6 kB / 0.8003 GB, free: 1.199 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.001574/0.5074, allocations: 478.3 kB / 0.8007 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006883/0.5081, allocations: 266.1 kB / 0.801 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5081, allocations: 7.938 kB / 0.801 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.5083, allocations: 75.89 kB / 0.8011 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.5094, allocations: 193.5 kB / 0.8012 GB, free: 344 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.5106, allocations: 0.7183 MB / 0.8019 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.5111, allocations: 0.827 MB / 0.8028 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002727/0.5114, allocations: 91.58 kB / 0.8028 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.297e-05/0.5115, allocations: 35.38 kB / 0.8029 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/0.5115, allocations: 0 / 0.8029 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.01646/0.5279, allocations: 8.556 MB / 0.8112 GB, free: 6.184 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)