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.001002/0.001002, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001118/0.001118, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.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.618/1.618, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005406/0.0005407, allocations: 17.12 kB / 0.6737 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.223, allocations: 116.3 MB / 0.7873 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02565/0.2487, allocations: 27.76 MB / 0.8144 GB, free: 60 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01437/0.2631, allocations: 10.96 MB / 0.8251 GB, free: 5.082 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.2644, allocations: 35.62 kB / 0.8251 GB, free: 5.047 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0009883/0.2654, allocations: 301.9 kB / 0.8254 GB, free: 4.75 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003286/0.2687, allocations: 1.072 MB / 0.8265 GB, free: 3.676 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002457/0.2711, allocations: 0.9672 MB / 0.8274 GB, free: 2.719 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003918/0.2751, allocations: 3.512 MB / 0.8308 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.2765, allocations: 1.078 MB / 0.8319 GB, free: 14.1 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.2788, allocations: 1.449 MB / 0.8333 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002329/0.2811, allocations: 1.546 MB / 0.8348 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.000286/0.2814, allocations: 64 kB / 0.8349 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.2832, allocations: 0.8695 MB / 0.8357 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004182/0.2836, allocations: 326.8 kB / 0.836 GB, free: 9.844 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.284, allocations: 245.1 kB / 0.8363 GB, free: 9.598 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.2856, allocations: 1.52 MB / 0.8378 GB, free: 8.074 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.2856, allocations: 4 kB / 0.8378 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2856, allocations: 0 / 0.8378 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.416e-05/0.2856, allocations: 0 / 0.8378 GB, free: 8.07 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.00219/0.2878, allocations: 1.328 MB / 0.8391 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2879, allocations: 8.031 kB / 0.8391 GB, free: 6.68 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.2882, allocations: 146.5 kB / 0.8392 GB, free: 6.535 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.2897, allocations: 0.8564 MB / 0.84 GB, free: 5.637 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.86e-05/0.2897, allocations: 89.25 kB / 0.8401 GB, free: 5.551 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.2899, allocations: 116 kB / 0.8402 GB, free: 5.438 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.291, allocations: 0.6318 MB / 0.8409 GB, free: 4.777 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.291, allocations: 7.938 kB / 0.8409 GB, free: 4.77 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.2911, allocations: 24 kB / 0.8409 GB, free: 4.746 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.2911, allocations: 12 kB / 0.8409 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007821/0.2919, allocations: 476.9 kB / 0.8413 GB, free: 4.266 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.004094/0.296, allocations: 2.879 MB / 0.8442 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.2966, allocations: 307 kB / 0.8445 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.2969, allocations: 153.3 kB / 0.8446 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003552/0.2972, allocations: 344.7 kB / 0.8449 GB, free: 372 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.2973, allocations: 34.84 kB / 0.845 GB, free: 328 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.2973, allocations: 0 / 0.845 GB, free: 328 kB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001322/0.2986, allocations: 0.5432 MB / 0.8455 GB, free: 15.77 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.2987, allocations: 55.41 kB / 0.8455 GB, free: 15.7 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.2998, allocations: 0.883 MB / 0.8464 GB, free: 14.8 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.3, allocations: 57.7 kB / 0.8465 GB, free: 14.73 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004957/0.3005, allocations: 0.5409 MB / 0.847 GB, free: 14.19 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.3006, allocations: 118.3 kB / 0.8471 GB, free: 14.07 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.3006, allocations: 16 kB / 0.8471 GB, free: 14.05 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3007, allocations: 326 kB / 0.8474 GB, free: 13.73 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.3011, allocations: 173.2 kB / 0.8476 GB, free: 13.56 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3024, allocations: 1.143 MB / 0.8487 GB, free: 12.05 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.3028, allocations: 306.8 kB / 0.849 GB, free: 11.75 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3029, allocations: 3.984 kB / 0.849 GB, free: 11.75 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00124/0.3041, allocations: 0.6422 MB / 0.8496 GB, free: 11.1 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.3042, allocations: 152.3 kB / 0.8498 GB, free: 10.92 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.3042, allocations: 4 kB / 0.8498 GB, free: 10.92 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.3043, allocations: 7.953 kB / 0.8498 GB, free: 10.91 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3056, allocations: 235.7 kB / 0.85 GB, free: 10.68 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.3072, allocations: 2.962 MB / 0.8529 GB, free: 7.602 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.3102, allocations: 0.7455 MB / 0.8536 GB, free: 6.852 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.053e-05/0.3103, allocations: 28 kB / 0.8537 GB, free: 6.824 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3103, allocations: 4 kB / 0.8537 GB, free: 6.82 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009535/0.3113, allocations: 0.501 MB / 0.8542 GB, free: 6.32 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3113, allocations: 7.938 kB / 0.8542 GB, free: 6.312 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.3113, allocations: 7.984 kB / 0.8542 GB, free: 6.305 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005978/0.3119, allocations: 160 kB / 0.8543 GB, free: 6.148 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.3119, allocations: 4 kB / 0.8543 GB, free: 6.145 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002781/0.3147, allocations: 0.7379 MB / 0.855 GB, free: 5.406 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.3148, allocations: 23.98 kB / 0.8551 GB, free: 5.383 MB / 0.67 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005082/0.3153, allocations: 325.9 kB / 0.8554 GB, free: 5.055 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3155, allocations: 102.7 kB / 0.8555 GB, free: 4.953 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.3165, allocations: 0.5325 MB / 0.856 GB, free: 4.414 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.3166, allocations: 4 kB / 0.856 GB, free: 4.41 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3166, allocations: 0 / 0.856 GB, free: 4.41 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3166, allocations: 7.984 kB / 0.856 GB, free: 4.402 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.3185, allocations: 1.264 MB / 0.8572 GB, free: 3.07 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3185, allocations: 0 / 0.8572 GB, free: 3.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.319, allocations: 119.8 kB / 0.8574 GB, free: 2.953 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.319, allocations: 0 / 0.8574 GB, free: 2.953 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.3191, allocations: 19.98 kB / 0.8574 GB, free: 2.934 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/0.3207, allocations: 2.942 MB / 0.8602 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3207, allocations: 0 / 0.8602 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009147/0.3216, allocations: 0.574 MB / 0.8608 GB, free: 15.27 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.3219, allocations: 219.7 kB / 0.861 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.114e-05/0.322, allocations: 11.98 kB / 0.861 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.3225, allocations: 67.78 kB / 0.8611 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/0.3226, allocations: 27.97 kB / 0.8611 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.3226, allocations: 11.98 kB / 0.8611 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006945/0.3233, allocations: 0.5922 MB / 0.8617 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3233, allocations: 0 / 0.8617 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001719/0.325, allocations: 0.5306 MB / 0.8622 GB, free: 13.79 MB / 0.6856 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006694/0.3257, allocations: 326.8 kB / 0.8625 GB, free: 13.47 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002397/0.3281, allocations: 0.8316 MB / 0.8634 GB, free: 12.63 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3281, allocations: 4 kB / 0.8634 GB, free: 12.63 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005278/0.3287, allocations: 236.2 kB / 0.8636 GB, free: 12.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/0.3309, allocations: 0.4989 MB / 0.8641 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.3336, allocations: 1.775 MB / 0.8658 GB, free: 10.1 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.3342, allocations: 1.025 MB / 0.8668 GB, free: 9.043 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001169/0.3354, allocations: 215 kB / 0.867 GB, free: 8.828 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.3356, allocations: 79.42 kB / 0.8671 GB, free: 8.75 MB / 0.6856 GB Notification: Performance of SimCode: time 1.012e-06/0.3356, allocations: 4 kB / 0.8671 GB, free: 8.746 MB / 0.6856 GB Notification: Performance of Templates: time 0.03757/0.3731, allocations: 23.74 MB / 0.8903 GB, free: 1.469 MB / 0.7012 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: