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.001379/0.001379, allocations: 108.2 kB / 16.41 MB, free: 6.496 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.001461/0.001461, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.331/1.331, 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.002274/0.002275, allocations: 304.8 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.042/1.042, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 91.86 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4498/0.4518, allocations: 86.98 MB / 0.7671 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02128/0.4731, allocations: 17.44 MB / 0.7841 GB, free: 2.375 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.007537/0.4807, allocations: 4.925 MB / 0.7889 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.4814, allocations: 15.94 kB / 0.7889 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000948/0.4824, allocations: 254.4 kB / 0.7891 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.4842, allocations: 0.6141 MB / 0.7897 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.4863, allocations: 0.7299 MB / 0.7905 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001453/0.4878, allocations: 0.9624 MB / 0.7914 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006437/0.4884, allocations: 333 kB / 0.7917 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009209/0.4894, allocations: 422.2 kB / 0.7921 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005823/0.4899, allocations: 310.7 kB / 0.7924 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.694e-05/0.49, allocations: 32 kB / 0.7924 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.4915, allocations: 0.733 MB / 0.7932 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.4917, allocations: 131.5 kB / 0.7933 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.4919, allocations: 242.7 kB / 0.7935 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.4935, allocations: 0.8904 MB / 0.7944 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4935, allocations: 0 / 0.7944 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.484e-06/0.4935, allocations: 3.938 kB / 0.7944 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.968e-05/0.4935, allocations: 0 / 0.7944 GB, free: 7.785 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.001479/0.495, allocations: 0.8797 MB / 0.7953 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.495, allocations: 12.03 kB / 0.7953 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.4953, allocations: 60.19 kB / 0.7953 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007786/0.496, allocations: 461.8 kB / 0.7958 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.4961, allocations: 28.5 kB / 0.7958 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.4961, allocations: 28 kB / 0.7958 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.4967, allocations: 282.2 kB / 0.7961 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.4967, allocations: 0 / 0.7961 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.4967, allocations: 12 kB / 0.7961 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.4968, allocations: 4 kB / 0.7961 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.4972, allocations: 198.1 kB / 0.7963 GB, free: 5.738 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.002012/0.4992, allocations: 1.472 MB / 0.7977 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.4996, allocations: 170.7 kB / 0.7979 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.4998, allocations: 80.8 kB / 0.798 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001645/0.5014, allocations: 1.28 MB / 0.7992 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.5015, allocations: 38.44 kB / 0.7993 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.5015, allocations: 0 / 0.7993 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006761/0.5022, allocations: 244.5 kB / 0.7995 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.5022, allocations: 59.41 kB / 0.7995 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006976/0.5029, allocations: 0.5848 MB / 0.8001 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.503, allocations: 29.7 kB / 0.8001 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.5032, allocations: 268.1 kB / 0.8004 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.5032, allocations: 59.19 kB / 0.8005 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.5034, allocations: 69.88 kB / 0.8005 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.5035, allocations: 358.8 kB / 0.8009 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.5037, allocations: 81.94 kB / 0.8009 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.5041, allocations: 210.7 kB / 0.8011 GB, free: 356 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/0.5045, allocations: 239.6 kB / 0.8014 GB, free: 84 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5045, allocations: 0 / 0.8014 GB, free: 84 kB / 0.5606 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000637/0.5051, allocations: 313 kB / 0.8017 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5052, allocations: 7.938 kB / 0.8017 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5052, allocations: 7.984 kB / 0.8017 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.5052, allocations: 4 kB / 0.8017 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.5055, allocations: 59.91 kB / 0.8017 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.5055, allocations: 7.938 kB / 0.8018 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.5058, allocations: 43.67 kB / 0.8018 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.5059, allocations: 15.98 kB / 0.8018 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003227/0.5062, allocations: 219.1 kB / 0.802 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002846/0.5065, allocations: 202.3 kB / 0.8022 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003975/0.5069, allocations: 235.3 kB / 0.8024 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.5069, allocations: 7.922 kB / 0.8024 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000603/0.5075, allocations: 311.2 kB / 0.8027 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.5076, allocations: 8 kB / 0.8027 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.5076, allocations: 7.938 kB / 0.8028 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.364e-06/0.5076, allocations: 4 kB / 0.8028 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.5078, allocations: 63.84 kB / 0.8028 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.5078, allocations: 4 kB / 0.8028 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.5082, allocations: 35.81 kB / 0.8029 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.5082, allocations: 16 kB / 0.8029 GB, free: 14.45 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.0001292/0.5084, allocations: 204.2 kB / 0.8031 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.52e-05/0.5085, allocations: 59.27 kB / 0.8031 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000565/0.509, allocations: 249.7 kB / 0.8034 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.5091, allocations: 3.984 kB / 0.8034 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.5091, allocations: 0 / 0.8034 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.5091, allocations: 4.188 kB / 0.8034 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.5102, allocations: 0.7355 MB / 0.8041 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5102, allocations: 0 / 0.8041 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.5103, allocations: 27.98 kB / 0.8041 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.5103, allocations: 7.984 kB / 0.8041 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.5104, allocations: 4.125 kB / 0.8041 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.5104, allocations: 7.984 kB / 0.8041 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5104, allocations: 3.938 kB / 0.8041 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005124/0.5109, allocations: 358.1 kB / 0.8045 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.5111, allocations: 140.5 kB / 0.8046 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.279e-05/0.5111, allocations: 8 kB / 0.8046 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.5113, allocations: 11.98 kB / 0.8046 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.5114, allocations: 19.86 kB / 0.8047 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.5114, allocations: 8 kB / 0.8047 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004686/0.5119, allocations: 418.8 kB / 0.8051 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5119, allocations: 4 kB / 0.8051 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007732/0.5127, allocations: 231.7 kB / 0.8053 GB, free: 11.85 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.001263/0.514, allocations: 0.4898 MB / 0.8058 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007592/0.5147, allocations: 322.3 kB / 0.8061 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5148, allocations: 0 / 0.8061 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.515, allocations: 91.89 kB / 0.8062 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.5163, allocations: 251.5 kB / 0.8064 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.5178, allocations: 0.8344 MB / 0.8072 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.5183, allocations: 0.8428 MB / 0.808 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.5184, allocations: 43.44 kB / 0.8081 GB, free: 9.047 MB / 0.5762 GB Notification: Performance of SimCode: time 2.7e-07/0.5184, allocations: 0 / 0.8081 GB, free: 9.047 MB / 0.5762 GB Notification: Performance of Templates: time 0.01396/0.5324, allocations: 8.573 MB / 0.8164 GB, free: 0.5664 MB / 0.5762 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)