Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(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_latest_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_latest_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.001717/0.001717, allocations: 101.2 kB / 16.27 MB, free: 6.418 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.001895/0.001895, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.611/2.611, allocations: 482.4 MB / 0.7553 GB, free: 6.977 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 69.73 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7132/0.7155, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03528/0.7508, allocations: 29.67 MB / 1.112 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0129/0.7637, allocations: 8.022 MB / 1.12 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.7653, allocations: 32.56 kB / 1.12 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.7667, allocations: 423.2 kB / 1.12 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.771, allocations: 1.358 MB / 1.121 GB, free: 5.629 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003281/0.7743, allocations: 1.123 MB / 1.123 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005092/0.7794, allocations: 3.484 MB / 1.126 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002814/0.7823, allocations: 1.32 MB / 1.127 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004084/0.7864, allocations: 1.7 MB / 1.129 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004002/0.7904, allocations: 1.605 MB / 1.13 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006809/0.7911, allocations: 125.5 kB / 1.131 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003265/0.7944, allocations: 1.016 MB / 1.132 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005508/0.795, allocations: 396.9 kB / 1.132 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.7962, allocations: 0.7424 MB / 1.133 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003375/0.7995, allocations: 2.164 MB / 1.135 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7996, allocations: 1.406 kB / 1.135 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7996, allocations: 0 / 1.135 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.559e-05/0.7996, allocations: 0 / 1.135 GB, free: 15.1 MB / 0.8731 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.003293/0.8029, allocations: 1.64 MB / 1.136 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.803, allocations: 9.344 kB / 1.136 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004346/0.8034, allocations: 155.3 kB / 1.137 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.8052, allocations: 0.8862 MB / 1.137 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.8053, allocations: 84.28 kB / 1.138 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.8055, allocations: 121.3 kB / 1.138 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.8067, allocations: 0.6313 MB / 1.138 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.8067, allocations: 3.938 kB / 1.138 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.8067, allocations: 25.53 kB / 1.138 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.8068, allocations: 14.47 kB / 1.138 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/0.8077, allocations: 468.7 kB / 1.139 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005144/0.8128, allocations: 2.852 MB / 1.142 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006422/0.8135, allocations: 318 kB / 1.142 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.8138, allocations: 144.7 kB / 1.142 GB, free: 9.887 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003447/0.8142, allocations: 343.7 kB / 1.142 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.8142, allocations: 37.5 kB / 1.142 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.8142, allocations: 0 / 1.142 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.001538/0.8157, allocations: 0.5311 MB / 1.143 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.8158, allocations: 55.25 kB / 1.143 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.817, allocations: 0.8797 MB / 1.144 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.8172, allocations: 54.39 kB / 1.144 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005277/0.8177, allocations: 0.5295 MB / 1.144 GB, free: 8.117 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.8179, allocations: 112.6 kB / 1.144 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004182/0.8183, allocations: 290.4 kB / 1.145 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.8184, allocations: 339.7 kB / 1.145 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.8189, allocations: 190.5 kB / 1.145 GB, free: 7.434 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.8204, allocations: 1.151 MB / 1.146 GB, free: 6.207 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008803/0.8213, allocations: 450.6 kB / 1.147 GB, free: 5.953 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.8213, allocations: 1.25 kB / 1.147 GB, free: 5.953 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001552/0.8228, allocations: 0.6555 MB / 1.147 GB, free: 5.633 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.8229, allocations: 10.5 kB / 1.147 GB, free: 5.629 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.8229, allocations: 1.438 kB / 1.147 GB, free: 5.629 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.8229, allocations: 4.625 kB / 1.147 GB, free: 5.629 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.8243, allocations: 229.5 kB / 1.148 GB, free: 5.566 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.8262, allocations: 2.972 MB / 1.151 GB, free: 2.551 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/0.8298, allocations: 0.6982 MB / 1.151 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.8299, allocations: 22.69 kB / 1.151 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000919/0.8308, allocations: 368.8 kB / 1.152 GB, free: 2 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001538/0.8324, allocations: 1.156 MB / 1.153 GB, free: 0.75 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008826/0.8333, allocations: 446.7 kB / 1.153 GB, free: 488 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.056e-06/0.8333, allocations: 8.938 kB / 1.153 GB, free: 480 kB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00177/0.8351, allocations: 0.649 MB / 1.154 GB, free: 172 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.8351, allocations: 6.031 kB / 1.154 GB, free: 172 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.8351, allocations: 3.75 kB / 1.154 GB, free: 172 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.8351, allocations: 5.594 kB / 1.154 GB, free: 172 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.8358, allocations: 162.8 kB / 1.154 GB, free: 128 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.8358, allocations: 9.453 kB / 1.154 GB, free: 124 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004881/0.8407, allocations: 0.961 MB / 1.155 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.8409, allocations: 36.09 kB / 1.155 GB, free: 15.68 MB / 0.8887 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.000472/0.8414, allocations: 244.6 kB / 1.155 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003844/0.8418, allocations: 93.91 kB / 1.155 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.8431, allocations: 0.5042 MB / 1.156 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.8431, allocations: 7.375 kB / 1.156 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.8431, allocations: 5.094 kB / 1.156 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.8431, allocations: 0 / 1.156 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.8453, allocations: 1.244 MB / 1.157 GB, free: 14.22 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.8454, allocations: 1.312 kB / 1.157 GB, free: 14.22 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.8459, allocations: 115.3 kB / 1.157 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.8459, allocations: 3.375 kB / 1.157 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.846, allocations: 12.86 kB / 1.157 GB, free: 14.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.8476, allocations: 2.95 MB / 1.16 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.8476, allocations: 5.062 kB / 1.16 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.8487, allocations: 0.5585 MB / 1.161 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.8491, allocations: 209.1 kB / 1.161 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.8492, allocations: 6.312 kB / 1.161 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.8496, allocations: 29.94 kB / 1.161 GB, free: 10.6 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.8497, allocations: 28.19 kB / 1.161 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.8498, allocations: 23.55 kB / 1.161 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008197/0.8506, allocations: 0.5858 MB / 1.161 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8506, allocations: 0 / 1.161 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001934/0.8525, allocations: 0.5327 MB / 1.162 GB, free: 10.12 MB / 0.8887 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.0008968/0.8534, allocations: 329.4 kB / 1.162 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003006/0.8565, allocations: 0.866 MB / 1.163 GB, free: 9.562 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.8565, allocations: 4 kB / 1.163 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006274/0.8571, allocations: 233.6 kB / 1.163 GB, free: 9.465 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.8593, allocations: 410.5 kB / 1.164 GB, free: 9.242 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.8625, allocations: 1.548 MB / 1.165 GB, free: 8.285 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007722/0.8632, allocations: 1.014 MB / 1.166 GB, free: 7.441 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.8635, allocations: 81.83 kB / 1.166 GB, free: 7.426 MB / 0.8887 GB Notification: Performance of SimCode: time 8.92e-07/0.8636, allocations: 0 / 1.166 GB, free: 7.426 MB / 0.8887 GB Notification: Performance of Templates: time 0.0473/0.9109, allocations: 35.69 MB / 1.201 GB, free: 4.332 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches