Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 106.9 kB / 16.41 MB, free: 6.449 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.00167/0.00167, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.474/1.474, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 282.7 kB / 291.5 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.9646/0.9646, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 99.84 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6103/0.6124, allocations: 86.97 MB / 0.767 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1197/0.7322, allocations: 112.6 MB / 0.877 GB, free: 2.945 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03482/0.7671, allocations: 20.26 MB / 0.8968 GB, free: 14.64 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005619/0.7728, allocations: 107.4 kB / 0.8969 GB, free: 14.53 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004638/0.7775, allocations: 1.273 MB / 0.8982 GB, free: 13.25 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01218/0.7897, allocations: 3.688 MB / 0.9018 GB, free: 9.547 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008403/0.7981, allocations: 3.121 MB / 0.9048 GB, free: 6.465 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01063/0.8087, allocations: 7.213 MB / 0.9119 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004913/0.8137, allocations: 2.572 MB / 0.9144 GB, free: 12.6 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007416/0.8211, allocations: 2.889 MB / 0.9172 GB, free: 9.703 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004361/0.8255, allocations: 2.124 MB / 0.9193 GB, free: 7.57 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001017/0.8265, allocations: 252 kB / 0.9195 GB, free: 7.324 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004858/0.8314, allocations: 1.654 MB / 0.9211 GB, free: 5.668 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.8327, allocations: 0.685 MB / 0.9218 GB, free: 4.98 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003518/0.8362, allocations: 1.52 MB / 0.9233 GB, free: 3.453 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.008398/0.8446, allocations: 4.399 MB / 0.9276 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.8447, allocations: 0 / 0.9276 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.422e-06/0.8447, allocations: 0 / 0.9276 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001568/0.8448, allocations: 0 / 0.9276 GB, free: 15.04 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.007195/0.852, allocations: 3.23 MB / 0.9307 GB, free: 11.75 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.8521, allocations: 12.03 kB / 0.9307 GB, free: 11.73 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008947/0.853, allocations: 328.5 kB / 0.9311 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00373/0.8567, allocations: 2.201 MB / 0.9332 GB, free: 9.137 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.048e-05/0.8568, allocations: 123 kB / 0.9333 GB, free: 9.016 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.8571, allocations: 172 kB / 0.9335 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002653/0.8597, allocations: 1.608 MB / 0.9351 GB, free: 7.176 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.8598, allocations: 7.906 kB / 0.9351 GB, free: 7.168 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.8599, allocations: 63.98 kB / 0.9351 GB, free: 7.105 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.797e-05/0.86, allocations: 47.92 kB / 0.9352 GB, free: 7.059 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.8619, allocations: 1.147 MB / 0.9363 GB, free: 5.906 MB / 0.7012 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.01119/0.8731, allocations: 7.904 MB / 0.944 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008317/0.874, allocations: 494.9 kB / 0.9445 GB, free: 13 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.8745, allocations: 323 kB / 0.9448 GB, free: 12.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007864/0.8753, allocations: 0.7524 MB / 0.9455 GB, free: 11.76 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.8753, allocations: 43.12 kB / 0.9456 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 2.314e-06/0.8753, allocations: 0 / 0.9456 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002199/0.8775, allocations: 0.9842 MB / 0.9465 GB, free: 10.72 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.8776, allocations: 63.97 kB / 0.9466 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003331/0.8809, allocations: 2.339 MB / 0.9489 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.8811, allocations: 49.7 kB / 0.9489 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.8822, allocations: 1.149 MB / 0.95 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.8824, allocations: 216.9 kB / 0.9502 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.8828, allocations: 254.6 kB / 0.9505 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.883, allocations: 349.9 kB / 0.9508 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006421/0.8836, allocations: 357.9 kB / 0.9512 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.8849, allocations: 0.7463 MB / 0.9519 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.8864, allocations: 0.9824 MB / 0.9529 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.8864, allocations: 4 kB / 0.9529 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002588/0.889, allocations: 1.295 MB / 0.9541 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.889, allocations: 11.94 kB / 0.9541 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.8891, allocations: 12 kB / 0.9541 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.8891, allocations: 12.69 kB / 0.9542 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.8901, allocations: 251.6 kB / 0.9544 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-05/0.8902, allocations: 23.92 kB / 0.9544 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.8918, allocations: 162.4 kB / 0.9546 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.8919, allocations: 47.98 kB / 0.9546 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001442/0.8933, allocations: 0.7602 MB / 0.9554 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009685/0.8943, allocations: 0.7349 MB / 0.9561 GB, free: 444 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.3962/1.29, allocations: 0.9486 MB / 0.957 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.179e-05/1.291, allocations: 2.438 kB / 0.957 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003427/1.294, allocations: 1.263 MB / 0.9582 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/1.294, allocations: 10.91 kB / 0.9582 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/1.294, allocations: 8.438 kB / 0.9583 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.814e-05/1.294, allocations: 21.33 kB / 0.9583 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/1.295, allocations: 245.5 kB / 0.9585 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.174e-05/1.295, allocations: 22.89 kB / 0.9585 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/1.297, allocations: 122.8 kB / 0.9587 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/1.297, allocations: 52.06 kB / 0.9587 GB, free: 180.7 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0002891/1.297, allocations: 254.3 kB / 0.9589 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/1.298, allocations: 233.1 kB / 0.9592 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/1.3, allocations: 0.891 MB / 0.96 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/1.3, allocations: 8.109 kB / 0.96 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/1.3, allocations: 0 / 0.96 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001002/1.301, allocations: 0.6804 MB / 0.9607 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004323/1.305, allocations: 2.584 MB / 0.9632 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/1.305, allocations: 2.172 kB / 0.9632 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005318/1.305, allocations: 128.9 kB / 0.9634 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/1.306, allocations: 5.688 kB / 0.9634 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/1.306, allocations: 17.02 kB / 0.9634 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/1.306, allocations: 4.234 kB / 0.9634 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.306, allocations: 1.844 kB / 0.9634 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/1.308, allocations: 1.31 MB / 0.9647 GB, free: 178.1 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007421/1.308, allocations: 419.5 kB / 0.9651 GB, free: 177.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/1.309, allocations: 17.17 kB / 0.9651 GB, free: 177.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009162/1.31, allocations: 45.34 kB / 0.9651 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.31, allocations: 45.06 kB / 0.9652 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.516e-05/1.31, allocations: 31.45 kB / 0.9652 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002375/1.312, allocations: 1.57 MB / 0.9667 GB, free: 177.1 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.2e-07/1.312, allocations: 0 / 0.9667 GB, free: 177.1 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002695/1.315, allocations: 1.11 MB / 0.9678 GB, free: 177 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001583/1.316, allocations: 0.7572 MB / 0.9686 GB, free: 176.9 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002304/1.319, allocations: 1.359 MB / 0.9699 GB, free: 176.4 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.319, allocations: 3.969 kB / 0.9699 GB, free: 176.4 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005145/1.319, allocations: 322 kB / 0.9702 GB, free: 176.3 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005172/1.324, allocations: 1.393 MB / 0.9716 GB, free: 176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004747/1.329, allocations: 3.739 MB / 0.9752 GB, free: 174.1 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000793/1.33, allocations: 1.585 MB / 0.9768 GB, free: 173.2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000415/1.33, allocations: 180.3 kB / 0.9769 GB, free: 173.1 MB / 0.7169 GB Notification: Performance of SimCode: time 7.61e-07/1.331, allocations: 0 / 0.9769 GB, free: 173.1 MB / 0.7169 GB Notification: Performance of Templates: time 0.04328/1.374, allocations: 40.21 MB / 1.016 GB, free: 133.5 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)