Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_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.0008523/0.0008524, allocations: 91.84 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.006718/0.006718, allocations: 173.2 kB / 16.26 MB, free: 6.676 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.501/1.501, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.9 MB / 0.6663 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005141/0.0005142, allocations: 12.23 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.841/0.8416, allocations: 142.4 MB / 0.955 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03398/0.8756, allocations: 28.92 MB / 0.9833 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01266/0.8883, allocations: 8.12 MB / 0.9912 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00192/0.8903, allocations: 24.03 kB / 0.9912 GB, free: 9.969 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.8916, allocations: 341.4 kB / 0.9916 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004021/0.8956, allocations: 1.24 MB / 0.9928 GB, free: 8.578 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003098/0.8987, allocations: 1.036 MB / 0.9938 GB, free: 7.551 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.004719/0.9035, allocations: 4.205 MB / 0.9979 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.905, allocations: 1.165 MB / 0.999 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.9076, allocations: 1.487 MB / 1 GB, free: 0.668 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.9101, allocations: 1.604 MB / 1.002 GB, free: 15.06 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002909/0.9105, allocations: 64 kB / 1.002 GB, free: 15 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002263/0.9127, allocations: 0.9357 MB / 1.003 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0004493/0.9132, allocations: 334.8 kB / 1.003 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.9144, allocations: 0.7015 MB / 1.004 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.004031/0.9184, allocations: 2.111 MB / 1.006 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.9185, allocations: 0 / 1.006 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.577e-06/0.9185, allocations: 0 / 1.006 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.331e-05/0.9185, allocations: 4 kB / 1.006 GB, free: 10.9 MB / 0.7637 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.002793/0.9213, allocations: 1.326 MB / 1.007 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.9214, allocations: 12.03 kB / 1.007 GB, free: 9.508 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003505/0.9217, allocations: 151.3 kB / 1.008 GB, free: 9.359 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.9235, allocations: 0.8908 MB / 1.008 GB, free: 8.41 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.702e-05/0.9236, allocations: 77.31 kB / 1.008 GB, free: 8.336 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.9238, allocations: 124 kB / 1.009 GB, free: 8.215 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.9249, allocations: 0.6395 MB / 1.009 GB, free: 7.547 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.9249, allocations: 7.984 kB / 1.009 GB, free: 7.539 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/0.925, allocations: 28 kB / 1.009 GB, free: 7.512 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.925, allocations: 12 kB / 1.009 GB, free: 7.5 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008876/0.9259, allocations: 488.8 kB / 1.01 GB, free: 7.02 MB / 0.7637 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.00425/0.9302, allocations: 2.879 MB / 1.013 GB, free: 3.988 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006039/0.9308, allocations: 312.7 kB / 1.013 GB, free: 3.676 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.9311, allocations: 161.3 kB / 1.013 GB, free: 3.516 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003489/0.9315, allocations: 340.7 kB / 1.013 GB, free: 3.109 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.9315, allocations: 34.84 kB / 1.013 GB, free: 3.066 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 2.174e-06/0.9315, allocations: 0 / 1.013 GB, free: 3.066 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.001399/0.9329, allocations: 0.5479 MB / 1.014 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.933, allocations: 59.39 kB / 1.014 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.9341, allocations: 0.9036 MB / 1.015 GB, free: 1.52 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.9343, allocations: 53.7 kB / 1.015 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005845/0.9349, allocations: 0.5341 MB / 1.015 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.935, allocations: 118.4 kB / 1.016 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.562e-05/0.9351, allocations: 61.62 kB / 1.016 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001915/0.9353, allocations: 338.1 kB / 1.016 GB, free: 408 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.9357, allocations: 185.2 kB / 1.016 GB, free: 224 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.9372, allocations: 1.159 MB / 1.017 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008595/0.9381, allocations: 467.5 kB / 1.018 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.9381, allocations: 3.938 kB / 1.018 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001358/0.9395, allocations: 0.6696 MB / 1.018 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.9396, allocations: 153.9 kB / 1.018 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.9396, allocations: 3.938 kB / 1.018 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.9397, allocations: 4 kB / 1.018 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.9411, allocations: 255.6 kB / 1.019 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.9427, allocations: 2.958 MB / 1.022 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/0.9461, allocations: 0.7494 MB / 1.022 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.469e-05/0.9462, allocations: 27.98 kB / 1.022 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.9462, allocations: 0 / 1.022 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00101/0.9472, allocations: 0.505 MB / 1.023 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.9472, allocations: 0 / 1.023 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.9473, allocations: 4 kB / 1.023 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006834/0.9479, allocations: 160 kB / 1.023 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.948, allocations: 11.94 kB / 1.023 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003497/0.9515, allocations: 0.7339 MB / 1.024 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.509e-05/0.9515, allocations: 27.98 kB / 1.024 GB, free: 7.801 MB / 0.7794 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.0005908/0.9521, allocations: 333.8 kB / 1.024 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.9523, allocations: 98.78 kB / 1.024 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.9535, allocations: 0.5241 MB / 1.025 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.9535, allocations: 7.984 kB / 1.025 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.9535, allocations: 0 / 1.025 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.9535, allocations: 0 / 1.025 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.9557, allocations: 1.275 MB / 1.026 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.9557, allocations: 4 kB / 1.026 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005184/0.9562, allocations: 119.8 kB / 1.026 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.9562, allocations: 4 kB / 1.026 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.9563, allocations: 8 kB / 1.026 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001371/0.9576, allocations: 2.946 MB / 1.029 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9577, allocations: 0 / 1.029 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009054/0.9586, allocations: 0.5892 MB / 1.03 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/0.9589, allocations: 219.7 kB / 1.03 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.374e-05/0.959, allocations: 4 kB / 1.03 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000566/0.9596, allocations: 71.78 kB / 1.03 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.9597, allocations: 35.89 kB / 1.03 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.9597, allocations: 8 kB / 1.03 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0007581/0.9605, allocations: 0.6162 MB / 1.03 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9605, allocations: 0 / 1.03 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001669/0.9622, allocations: 0.5306 MB / 1.031 GB, free: 172 kB / 0.7794 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.0007276/0.9629, allocations: 340.4 kB / 1.031 GB, free: 15.84 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002592/0.9655, allocations: 0.8518 MB / 1.032 GB, free: 14.99 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.9655, allocations: 4 kB / 1.032 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005858/0.9661, allocations: 239.5 kB / 1.032 GB, free: 14.75 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/0.9689, allocations: 481.2 kB / 1.033 GB, free: 14.28 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.9715, allocations: 1.879 MB / 1.035 GB, free: 12.36 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005628/0.9721, allocations: 1.025 MB / 1.036 GB, free: 11.31 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001117/0.9732, allocations: 215 kB / 1.036 GB, free: 11.09 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.9734, allocations: 83.41 kB / 1.036 GB, free: 11.01 MB / 0.795 GB Notification: Performance of SimCode: time 8.21e-07/0.9734, allocations: 0 / 1.036 GB, free: 11.01 MB / 0.795 GB Notification: Performance of Templates: time 0.04484/1.018, allocations: 24.41 MB / 1.06 GB, free: 3.059 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches