Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 96.61 kB / 16.29 MB, free: 5.918 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.001127/0.001127, allocations: 180.9 kB / 17.22 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.863/1.863, allocations: 292.3 MB / 0.5495 GB, free: 17.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 72.45 kB / 0.6722 GB, free: 6.566 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.326, allocations: 114.6 MB / 0.7841 GB, free: 3.895 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.6932/1.019, allocations: 30.21 MB / 0.8136 GB, free: 31.31 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02287/1.042, allocations: 11.53 MB / 0.8248 GB, free: 23.52 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/1.045, allocations: 43.75 kB / 0.8249 GB, free: 23.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002014/1.047, allocations: 431.7 kB / 0.8253 GB, free: 23.23 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006515/1.054, allocations: 1.374 MB / 0.8266 GB, free: 22.44 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.004582/1.059, allocations: 1.148 MB / 0.8278 GB, free: 21.89 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.008089/1.067, allocations: 3.52 MB / 0.8312 GB, free: 20.46 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003929/1.071, allocations: 1.32 MB / 0.8325 GB, free: 20.06 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005464/1.076, allocations: 1.668 MB / 0.8341 GB, free: 19.49 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005339/1.082, allocations: 1.604 MB / 0.8357 GB, free: 18.99 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001319/1.083, allocations: 124.5 kB / 0.8358 GB, free: 18.99 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004805/1.088, allocations: 1.023 MB / 0.8368 GB, free: 18.69 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008102/1.089, allocations: 409.9 kB / 0.8372 GB, free: 18.48 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001807/1.09, allocations: 0.7355 MB / 0.8379 GB, free: 18.1 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005913/1.096, allocations: 2.194 MB / 0.84 GB, free: 17.38 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.096, allocations: 3.938 kB / 0.84 GB, free: 17.38 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.314e-06/1.096, allocations: 0 / 0.84 GB, free: 17.38 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.621e-05/1.096, allocations: 0 / 0.84 GB, free: 17.38 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004736/1.101, allocations: 1.657 MB / 0.8417 GB, free: 16.34 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 6.423e-05/1.101, allocations: 9.344 kB / 0.8417 GB, free: 16.34 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000542/1.102, allocations: 150.7 kB / 0.8418 GB, free: 16.27 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/1.104, allocations: 0.8955 MB / 0.8427 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/1.104, allocations: 81.03 kB / 0.8428 GB, free: 15.74 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/1.105, allocations: 116.7 kB / 0.8429 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/1.106, allocations: 0.6343 MB / 0.8435 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/1.106, allocations: 3.938 kB / 0.8435 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/1.106, allocations: 22.7 kB / 0.8435 GB, free: 15.4 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/1.106, allocations: 19 kB / 0.8435 GB, free: 15.4 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/1.107, allocations: 458.5 kB / 0.844 GB, free: 15.25 MB / 0.6544 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.005962/1.113, allocations: 2.871 MB / 0.8468 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006588/1.114, allocations: 304.8 kB / 0.8471 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/1.114, allocations: 144.1 kB / 0.8472 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/1.114, allocations: 344.9 kB / 0.8475 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/1.115, allocations: 43.44 kB / 0.8476 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 3.287e-06/1.115, allocations: 0 / 0.8476 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001557/1.116, allocations: 0.5262 MB / 0.8481 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/1.116, allocations: 55.31 kB / 0.8482 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/1.117, allocations: 0.89 MB / 0.849 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002226/1.118, allocations: 61.3 kB / 0.8491 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/1.118, allocations: 0.5275 MB / 0.8496 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.27e-05/1.118, allocations: 116.7 kB / 0.8497 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004329/1.119, allocations: 286.9 kB / 0.85 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.114e-05/1.119, allocations: 331.7 kB / 0.8503 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004172/1.119, allocations: 194.4 kB / 0.8505 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/1.121, allocations: 1.147 MB / 0.8516 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009053/1.122, allocations: 453.1 kB / 0.852 GB, free: 9.547 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/1.122, allocations: 1.25 kB / 0.852 GB, free: 9.547 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001801/1.123, allocations: 0.6558 MB / 0.8527 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/1.123, allocations: 7.281 kB / 0.8527 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/1.123, allocations: 5.281 kB / 0.8527 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/1.123, allocations: 5.062 kB / 0.8527 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/1.125, allocations: 229.8 kB / 0.8529 GB, free: 9.172 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/1.126, allocations: 2.96 MB / 0.8558 GB, free: 6.168 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00367/1.13, allocations: 0.7063 MB / 0.8565 GB, free: 5.836 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/1.13, allocations: 23.55 kB / 0.8565 GB, free: 5.832 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001037/1.131, allocations: 373.1 kB / 0.8569 GB, free: 5.609 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001448/1.132, allocations: 1.159 MB / 0.858 GB, free: 4.355 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008436/1.133, allocations: 451 kB / 0.8584 GB, free: 4.082 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.837e-06/1.133, allocations: 1.219 kB / 0.8584 GB, free: 4.082 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001917/1.135, allocations: 0.6622 MB / 0.8591 GB, free: 3.773 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.135, allocations: 5.312 kB / 0.8591 GB, free: 3.773 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/1.135, allocations: 4.594 kB / 0.8591 GB, free: 3.773 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/1.135, allocations: 9.312 kB / 0.8591 GB, free: 3.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007089/1.136, allocations: 154.2 kB / 0.8592 GB, free: 3.734 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/1.136, allocations: 10.52 kB / 0.8593 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/1.141, allocations: 0.9619 MB / 0.8602 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/1.141, allocations: 30.8 kB / 0.8602 GB, free: 3.297 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004733/1.141, allocations: 241.5 kB / 0.8605 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/1.142, allocations: 90.25 kB / 0.8605 GB, free: 3.031 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/1.143, allocations: 0.5128 MB / 0.861 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/1.143, allocations: 6 kB / 0.861 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.143, allocations: 0 / 0.861 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/1.143, allocations: 1.312 kB / 0.861 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/1.145, allocations: 1.252 MB / 0.8623 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/1.145, allocations: 6.641 kB / 0.8623 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005568/1.146, allocations: 118.3 kB / 0.8624 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.876e-06/1.146, allocations: 2.719 kB / 0.8624 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/1.146, allocations: 17.36 kB / 0.8624 GB, free: 1.793 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/1.147, allocations: 2.941 MB / 0.8653 GB, free: 14.8 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.147, allocations: 6.609 kB / 0.8653 GB, free: 14.8 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/1.149, allocations: 0.5546 MB / 0.8658 GB, free: 14.43 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004776/1.149, allocations: 214.3 kB / 0.866 GB, free: 14.24 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/1.149, allocations: 9.688 kB / 0.866 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/1.15, allocations: 33.34 kB / 0.8661 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/1.15, allocations: 32.78 kB / 0.8661 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/1.15, allocations: 14.94 kB / 0.8661 GB, free: 14.19 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001061/1.151, allocations: 0.5987 MB / 0.8667 GB, free: 13.84 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.7e-07/1.151, allocations: 0 / 0.8667 GB, free: 13.84 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002657/1.154, allocations: 0.5353 MB / 0.8672 GB, free: 13.73 MB / 0.67 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001084/1.155, allocations: 322.8 kB / 0.8675 GB, free: 13.55 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003482/1.158, allocations: 0.8406 MB / 0.8684 GB, free: 13.22 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/1.158, allocations: 1.062 kB / 0.8684 GB, free: 13.22 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0006734/1.159, allocations: 233.8 kB / 0.8686 GB, free: 13.13 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/1.161, allocations: 421.7 kB / 0.869 GB, free: 12.93 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/1.164, allocations: 1.508 MB / 0.8705 GB, free: 12.02 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007992/1.165, allocations: 1.018 MB / 0.8714 GB, free: 11.17 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001649/1.167, allocations: 212.7 kB / 0.8717 GB, free: 11.1 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/1.167, allocations: 81.23 kB / 0.8717 GB, free: 11.08 MB / 0.67 GB Notification: Performance of SimCode: time 1.092e-06/1.167, allocations: 4 kB / 0.8717 GB, free: 11.07 MB / 0.67 GB Notification: Performance of Templates: time 0.05418/1.221, allocations: 25.07 MB / 0.8962 GB, free: 7.258 MB / 0.6856 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)