Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00575/0.00575, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001283/0.001283, allocations: 199.2 kB / 16.68 MB, free: 5.961 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.303/1.303, 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.002048/0.002048, allocations: 299.1 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.945/0.945, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 103.8 kB / 0.6815 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4744/0.4762, allocations: 86.98 MB / 0.7664 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01932/0.4956, allocations: 17.43 MB / 0.7834 GB, free: 2.434 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006612/0.5022, allocations: 4.921 MB / 0.7882 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005434/0.5028, allocations: 15.94 kB / 0.7882 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008653/0.5037, allocations: 262.4 kB / 0.7885 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001496/0.5052, allocations: 0.6063 MB / 0.7891 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.5071, allocations: 0.7313 MB / 0.7898 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001212/0.5083, allocations: 0.9663 MB / 0.7907 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005663/0.5089, allocations: 333 kB / 0.7911 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008448/0.5097, allocations: 422.3 kB / 0.7915 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005147/0.5103, allocations: 314.6 kB / 0.7918 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.393e-05/0.5104, allocations: 32 kB / 0.7918 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.5116, allocations: 0.7292 MB / 0.7925 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.5118, allocations: 131.5 kB / 0.7926 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.5121, allocations: 246.7 kB / 0.7929 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.5135, allocations: 0.8827 MB / 0.7937 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.5135, allocations: 3.938 kB / 0.7937 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5135, allocations: 0 / 0.7937 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.849e-05/0.5135, allocations: 0 / 0.7937 GB, free: 7.852 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001516/0.5151, allocations: 0.8875 MB / 0.7946 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.5151, allocations: 8.031 kB / 0.7946 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.5153, allocations: 60.19 kB / 0.7947 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007205/0.516, allocations: 457.8 kB / 0.7951 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.5161, allocations: 24.5 kB / 0.7951 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.5161, allocations: 28 kB / 0.7951 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.5166, allocations: 286.2 kB / 0.7954 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.5166, allocations: 3.938 kB / 0.7954 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.5167, allocations: 16 kB / 0.7954 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.5167, allocations: 8 kB / 0.7954 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003841/0.5171, allocations: 186.1 kB / 0.7956 GB, free: 5.805 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.00185/0.5189, allocations: 1.476 MB / 0.7971 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.5192, allocations: 178.6 kB / 0.7972 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.5194, allocations: 80.81 kB / 0.7973 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001517/0.5209, allocations: 1.268 MB / 0.7986 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.521, allocations: 46.38 kB / 0.7986 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.521, allocations: 0 / 0.7986 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005862/0.5216, allocations: 249.1 kB / 0.7988 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.5216, allocations: 55.41 kB / 0.7989 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005992/0.5222, allocations: 0.577 MB / 0.7994 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.5223, allocations: 33.69 kB / 0.7995 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.5224, allocations: 264.1 kB / 0.7997 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.5225, allocations: 63.17 kB / 0.7998 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.189e-05/0.5226, allocations: 69.89 kB / 0.7999 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5227, allocations: 358.8 kB / 0.8002 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.5229, allocations: 85.92 kB / 0.8003 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.5232, allocations: 206.7 kB / 0.8005 GB, free: 416 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.5236, allocations: 233.2 kB / 0.8007 GB, free: 148 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.5236, allocations: 0 / 0.8007 GB, free: 148 kB / 0.5606 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005477/0.5242, allocations: 314.9 kB / 0.801 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.5242, allocations: 7.938 kB / 0.801 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5242, allocations: 4 kB / 0.801 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.5242, allocations: 4 kB / 0.801 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.5245, allocations: 63.91 kB / 0.8011 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5245, allocations: 7.938 kB / 0.8011 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.5248, allocations: 43.66 kB / 0.8011 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.5248, allocations: 20.16 kB / 0.8011 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002812/0.5251, allocations: 215 kB / 0.8014 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002566/0.5254, allocations: 206.2 kB / 0.8016 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003556/0.5257, allocations: 231.1 kB / 0.8018 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.452e-06/0.5257, allocations: 0 / 0.8018 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005644/0.5263, allocations: 309 kB / 0.8021 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.5263, allocations: 10.34 kB / 0.8021 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.5264, allocations: 3.938 kB / 0.8021 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/0.5264, allocations: 4 kB / 0.8021 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.5266, allocations: 67.83 kB / 0.8021 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.5266, allocations: 4 kB / 0.8022 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.5269, allocations: 40.17 kB / 0.8022 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.527, allocations: 19.98 kB / 0.8022 GB, free: 14.51 MB / 0.5762 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.0001066/0.5271, allocations: 200.1 kB / 0.8024 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.372e-05/0.5272, allocations: 59.22 kB / 0.8025 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000505/0.5277, allocations: 256.2 kB / 0.8027 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.5277, allocations: 0 / 0.8027 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5277, allocations: 7.938 kB / 0.8027 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.5277, allocations: 4 kB / 0.8027 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009616/0.5287, allocations: 0.7307 MB / 0.8034 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5287, allocations: 0 / 0.8034 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.5288, allocations: 32.09 kB / 0.8035 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.5288, allocations: 8 kB / 0.8035 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.5288, allocations: 4 kB / 0.8035 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5288, allocations: 4 kB / 0.8035 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5289, allocations: 3.938 kB / 0.8035 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/0.5293, allocations: 354.1 kB / 0.8038 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.5294, allocations: 144.5 kB / 0.804 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.5295, allocations: 4 kB / 0.804 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.5297, allocations: 11.98 kB / 0.804 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.5297, allocations: 19.86 kB / 0.804 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.5298, allocations: 12 kB / 0.804 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004141/0.5302, allocations: 418.8 kB / 0.8044 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5302, allocations: 0 / 0.8044 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006973/0.5309, allocations: 235.7 kB / 0.8046 GB, free: 11.91 MB / 0.5762 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.001096/0.532, allocations: 0.4907 MB / 0.8051 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006669/0.5327, allocations: 318.6 kB / 0.8054 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5327, allocations: 0 / 0.8054 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.5329, allocations: 91.88 kB / 0.8055 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.5341, allocations: 260.1 kB / 0.8057 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.5353, allocations: 0.7937 MB / 0.8065 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.5357, allocations: 0.8506 MB / 0.8073 GB, free: 9.176 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002541/0.536, allocations: 96.25 kB / 0.8074 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.621e-05/0.5361, allocations: 39.44 kB / 0.8075 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of SimCode: time 4.8e-07/0.5361, allocations: 0 / 0.8075 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of Templates: time 0.01601/0.5521, allocations: 10.39 MB / 0.8176 GB, free: 14.82 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)