Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 193.4 kB / 16.53 MB, free: 6.664 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.948/2.948, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63 kB / 0.912 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3634, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.0256/0.389, allocations: 19.43 MB / 1.087 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009284/0.3984, allocations: 5.158 MB / 1.092 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.3996, allocations: 19.81 kB / 1.092 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.4008, allocations: 262 kB / 1.092 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.4032, allocations: 0.7764 MB / 1.093 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00255/0.4058, allocations: 0.8724 MB / 1.094 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002419/0.4082, allocations: 1.537 MB / 1.096 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.4093, allocations: 0.525 MB / 1.096 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.4107, allocations: 0.6227 MB / 1.097 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009942/0.4117, allocations: 0.5328 MB / 1.097 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002948/0.412, allocations: 56 kB / 1.097 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.4137, allocations: 0.6979 MB / 1.098 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003533/0.414, allocations: 163.3 kB / 1.098 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006741/0.4147, allocations: 378 kB / 1.098 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.4169, allocations: 1.079 MB / 1.1 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.4169, allocations: 4 kB / 1.1 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4169, allocations: 0 / 1.1 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.363e-05/0.4169, allocations: 0 / 1.1 GB, free: 10.24 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002847/0.4198, allocations: 1.098 MB / 1.101 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.4199, allocations: 12.03 kB / 1.101 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002862/0.4202, allocations: 83.91 kB / 1.101 GB, free: 9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009567/0.4211, allocations: 0.5031 MB / 1.101 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.4212, allocations: 37 kB / 1.101 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.194e-05/0.4213, allocations: 48 kB / 1.101 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.4224, allocations: 0.6216 MB / 1.102 GB, free: 7.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.4225, allocations: 4 kB / 1.102 GB, free: 7.684 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.4225, allocations: 20 kB / 1.102 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.4225, allocations: 12 kB / 1.102 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.4236, allocations: 495.4 kB / 1.102 GB, free: 7.168 MB / 0.8575 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.00382/0.4275, allocations: 3.212 MB / 1.105 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007138/0.4282, allocations: 346.8 kB / 1.106 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.4287, allocations: 226.6 kB / 1.106 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004482/0.4292, allocations: 348.4 kB / 1.106 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4292, allocations: 34.56 kB / 1.106 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=38): time 1.933e-06/0.4292, allocations: 0 / 1.106 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of matching and sorting (n=38): time 0.002312/0.4315, allocations: 0.8189 MB / 1.107 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.4316, allocations: 55.41 kB / 1.107 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007902/0.4324, allocations: 0.5861 MB / 1.108 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.556e-05/0.4324, allocations: 37.64 kB / 1.108 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.4327, allocations: 328.4 kB / 1.108 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.4329, allocations: 134.1 kB / 1.108 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.4331, allocations: 126.2 kB / 1.108 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002658/0.4333, allocations: 374.8 kB / 1.109 GB, free: 228 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.4339, allocations: 223.3 kB / 1.109 GB, free: 0 / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006398/0.4345, allocations: 374.3 kB / 1.109 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.4357, allocations: 0.5664 MB / 1.11 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4357, allocations: 0 / 1.11 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001742/0.4375, allocations: 0.726 MB / 1.111 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.4375, allocations: 8 kB / 1.111 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.4375, allocations: 4.562 kB / 1.111 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007093/0.4382, allocations: 132.8 kB / 1.111 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/0.4388, allocations: 139.8 kB / 1.111 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006925/0.4395, allocations: 0.6226 MB / 1.112 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007067/0.4402, allocations: 83.23 kB / 1.112 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/0.4403, allocations: 31.98 kB / 1.112 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000874/0.4412, allocations: 349.3 kB / 1.112 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006232/0.4419, allocations: 372 kB / 1.112 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001095/0.443, allocations: 0.551 MB / 1.113 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.579e-06/0.443, allocations: 8 kB / 1.113 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001531/0.4445, allocations: 0.6747 MB / 1.114 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4445, allocations: 8 kB / 1.114 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.4446, allocations: 4 kB / 1.114 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.4446, allocations: 8 kB / 1.114 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/0.4452, allocations: 151.8 kB / 1.114 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.4453, allocations: 12.39 kB / 1.114 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/0.4459, allocations: 67.5 kB / 1.114 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/0.446, allocations: 35.98 kB / 1.114 GB, free: 10.81 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002886/0.4463, allocations: 221.6 kB / 1.114 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.4465, allocations: 59.25 kB / 1.114 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.4481, allocations: 0.649 MB / 1.115 GB, free: 9.875 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.4482, allocations: 4 kB / 1.115 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.4482, allocations: 7.922 kB / 1.115 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4482, allocations: 0 / 1.115 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.4509, allocations: 1.363 MB / 1.116 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.4509, allocations: 0 / 1.116 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.4512, allocations: 87.98 kB / 1.116 GB, free: 8.348 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004309/0.4517, allocations: 104.8 kB / 1.116 GB, free: 8.242 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.4517, allocations: 12 kB / 1.116 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007116/0.4525, allocations: 0.6381 MB / 1.117 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4525, allocations: 0 / 1.117 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.4539, allocations: 0.701 MB / 1.118 GB, free: 6.836 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.4542, allocations: 192.1 kB / 1.118 GB, free: 6.629 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.4543, allocations: 12 kB / 1.118 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.4548, allocations: 35.95 kB / 1.118 GB, free: 6.582 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.4548, allocations: 27.97 kB / 1.118 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.4549, allocations: 19.98 kB / 1.118 GB, free: 6.535 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004753/0.4554, allocations: 403.1 kB / 1.118 GB, free: 6.148 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.41e-07/0.4554, allocations: 0 / 1.118 GB, free: 6.148 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001221/0.4566, allocations: 391.4 kB / 1.119 GB, free: 5.766 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008599/0.4575, allocations: 298.5 kB / 1.119 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002233/0.4597, allocations: 0.8986 MB / 1.12 GB, free: 4.578 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4597, allocations: 4 kB / 1.12 GB, free: 4.574 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007704/0.4605, allocations: 279.7 kB / 1.12 GB, free: 4.301 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4617, allocations: 238.7 kB / 1.12 GB, free: 4.074 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.4638, allocations: 1.072 MB / 1.121 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.4644, allocations: 0.9155 MB / 1.122 GB, free: 2.02 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005977/0.465, allocations: 155.1 kB / 1.122 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.4651, allocations: 63.42 kB / 1.122 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of SimCode: time 4.21e-07/0.4652, allocations: 0 / 1.122 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of Templates: time 0.02367/0.4888, allocations: 12.62 MB / 1.135 GB, free: 5.348 MB / 0.8887 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)