Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008778/0.0008779, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005379/0.005379, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.252/1.252, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.375/2.375, allocations: 437.8 MB / 0.7121 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 16 kB / 0.8729 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5326/0.533, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1028/0.6358, allocations: 110.1 MB / 1.131 GB, free: 1.387 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0265/0.6623, allocations: 20.12 MB / 1.15 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003369/0.6657, allocations: 95.31 kB / 1.15 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.669, allocations: 1.041 MB / 1.151 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008802/0.6778, allocations: 3.386 MB / 1.155 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.006511/0.6843, allocations: 2.851 MB / 1.158 GB, free: 5.867 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01002/0.6943, allocations: 9.534 MB / 1.167 GB, free: 12.31 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003247/0.6976, allocations: 2.074 MB / 1.169 GB, free: 10.18 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004331/0.7019, allocations: 2.321 MB / 1.171 GB, free: 7.852 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002972/0.7049, allocations: 2.041 MB / 1.173 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003472/0.7053, allocations: 92 kB / 1.173 GB, free: 5.711 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003079/0.7084, allocations: 1.435 MB / 1.175 GB, free: 4.273 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005247/0.7089, allocations: 0.5248 MB / 1.175 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.7105, allocations: 1.33 MB / 1.176 GB, free: 2.402 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004668/0.7152, allocations: 4.15 MB / 1.18 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.7152, allocations: 4 kB / 1.18 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7152, allocations: 0 / 1.18 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.156e-05/0.7153, allocations: 0 / 1.18 GB, free: 14.24 MB / 0.9356 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.004036/0.7193, allocations: 2.689 MB / 1.183 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.7194, allocations: 8.031 kB / 1.183 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002468/0.7196, allocations: 219.7 kB / 1.183 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000576/0.7202, allocations: 332.4 kB / 1.184 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/0.7234, allocations: 2.158 MB / 1.186 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.784e-05/0.7235, allocations: 131 kB / 1.186 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002101/0.7237, allocations: 168 kB / 1.186 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002519/0.7262, allocations: 1.616 MB / 1.188 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.7262, allocations: 4 kB / 1.188 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.7264, allocations: 63.98 kB / 1.188 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.943e-05/0.7264, allocations: 43.94 kB / 1.188 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.7283, allocations: 1.159 MB / 1.189 GB, free: 5.441 MB / 0.9356 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.009235/0.7376, allocations: 7.901 MB / 1.197 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007025/0.7383, allocations: 477.9 kB / 1.197 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.7388, allocations: 331 kB / 1.197 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000544/0.7393, allocations: 0.7563 MB / 1.198 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.7394, allocations: 47.12 kB / 1.198 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 3.346e-06/0.7394, allocations: 0 / 1.198 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.001744/0.7411, allocations: 1.004 MB / 1.199 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.7412, allocations: 59.97 kB / 1.199 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002671/0.7439, allocations: 2.316 MB / 1.201 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 8.319e-05/0.744, allocations: 49.7 kB / 1.201 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000856/0.7448, allocations: 1.149 MB / 1.203 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.745, allocations: 212.9 kB / 1.203 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.7451, allocations: 105.7 kB / 1.203 GB, free: 6.309 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.7453, allocations: 345.9 kB / 1.203 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.7459, allocations: 366.4 kB / 1.204 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008741/0.7468, allocations: 0.7463 MB / 1.204 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.7481, allocations: 0.9941 MB / 1.205 GB, free: 3.59 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.7481, allocations: 7.938 kB / 1.205 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001968/0.7501, allocations: 1.303 MB / 1.207 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.7503, allocations: 343.4 kB / 1.207 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.7503, allocations: 12 kB / 1.207 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.7503, allocations: 12 kB / 1.207 GB, free: 1.797 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009198/0.7513, allocations: 255.6 kB / 1.207 GB, free: 1.547 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.7513, allocations: 19.88 kB / 1.207 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.7529, allocations: 258.2 kB / 1.207 GB, free: 1.273 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.631e-05/0.7529, allocations: 47.98 kB / 1.207 GB, free: 1.227 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.662e-06/0.753, allocations: 7.938 kB / 1.207 GB, free: 1.219 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001696/0.7547, allocations: 1.031 MB / 1.208 GB, free: 188 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.7547, allocations: 8 kB / 1.208 GB, free: 180 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7547, allocations: 16 kB / 1.209 GB, free: 164 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009016/0.7556, allocations: 251.6 kB / 1.209 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.7556, allocations: 19.92 kB / 1.209 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/0.7578, allocations: 223 kB / 1.209 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.522e-05/0.7579, allocations: 51.98 kB / 1.209 GB, free: 15.62 MB / 0.9669 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.001239/0.7591, allocations: 0.571 MB / 1.21 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000541/0.7597, allocations: 240.9 kB / 1.21 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.7614, allocations: 0.9014 MB / 1.211 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-05/0.7614, allocations: 4 kB / 1.211 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/0.7615, allocations: 0 / 1.211 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009933/0.7625, allocations: 0.7009 MB / 1.211 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/0.7662, allocations: 2.582 MB / 1.214 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.7662, allocations: 0 / 1.214 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.7667, allocations: 128.2 kB / 1.214 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.7668, allocations: 4 kB / 1.214 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.7668, allocations: 19.98 kB / 1.214 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.7668, allocations: 7.938 kB / 1.214 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7668, allocations: 3.938 kB / 1.214 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.7687, allocations: 1.333 MB / 1.215 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007865/0.7695, allocations: 457.8 kB / 1.216 GB, free: 8.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003025/0.7698, allocations: 12 kB / 1.216 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.771, allocations: 115.7 kB / 1.216 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.7711, allocations: 48.44 kB / 1.216 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.024e-05/0.7712, allocations: 31.98 kB / 1.216 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002274/0.7735, allocations: 1.562 MB / 1.218 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7735, allocations: 0 / 1.218 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002659/0.7762, allocations: 1.095 MB / 1.219 GB, free: 5.645 MB / 0.9669 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.003597/0.7798, allocations: 2.514 MB / 1.221 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002383/0.7822, allocations: 1.369 MB / 1.222 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.7822, allocations: 4 kB / 1.222 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.7827, allocations: 324.4 kB / 1.223 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006878/0.7896, allocations: 1.389 MB / 1.224 GB, free: 184 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03055/0.8201, allocations: 18.24 MB / 1.242 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.8214, allocations: 1.59 MB / 1.243 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002163/0.8236, allocations: 498.8 kB / 1.244 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.8249, allocations: 0.9639 MB / 1.245 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/0.8249, allocations: 0 / 1.245 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.788/3.613, allocations: 63.72 MB / 1.307 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/3.614, allocations: 252.5 kB / 1.307 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.782/7.396, allocations: 0 / 1.307 GB, free: 189.3 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches