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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001059/0.001059, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00766/0.00766, allocations: 170.9 kB / 16.27 MB, free: 6.66 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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.905/2.905, allocations: 462.7 MB / 0.7364 GB, free: 312 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 9.156 kB / 0.9028 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3398, allocations: 159.6 MB / 1.059 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03419/0.374, allocations: 28.94 MB / 1.087 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.3881, allocations: 8.119 MB / 1.095 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.3901, allocations: 27.75 kB / 1.095 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.3919, allocations: 342 kB / 1.095 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005426/0.3973, allocations: 1.239 MB / 1.096 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003461/0.4008, allocations: 1.039 MB / 1.097 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005438/0.4063, allocations: 4.196 MB / 1.102 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.4085, allocations: 1.152 MB / 1.103 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/0.4118, allocations: 1.503 MB / 1.104 GB, free: 6.801 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003083/0.4149, allocations: 1.593 MB / 1.106 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006231/0.4155, allocations: 64 kB / 1.106 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.418, allocations: 0.9358 MB / 1.107 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0006723/0.4187, allocations: 338.7 kB / 1.107 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.4202, allocations: 0.7092 MB / 1.108 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003376/0.4236, allocations: 2.095 MB / 1.11 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4236, allocations: 0 / 1.11 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4236, allocations: 0 / 1.11 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.581e-05/0.4237, allocations: 0 / 1.11 GB, free: 1.051 MB / 0.8575 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.003171/0.4269, allocations: 1.344 MB / 1.111 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.4269, allocations: 8.031 kB / 1.111 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000539/0.4275, allocations: 151.4 kB / 1.111 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.4294, allocations: 0.8948 MB / 1.112 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.456e-05/0.4295, allocations: 77.31 kB / 1.112 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.4298, allocations: 120 kB / 1.112 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.4311, allocations: 0.6395 MB / 1.113 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.4311, allocations: 0 / 1.113 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.4312, allocations: 24 kB / 1.113 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.4312, allocations: 12 kB / 1.113 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009161/0.4321, allocations: 492.8 kB / 1.113 GB, free: 13.17 MB / 0.8731 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.004756/0.4369, allocations: 2.864 MB / 1.116 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006202/0.4375, allocations: 316.7 kB / 1.116 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003168/0.4378, allocations: 161.3 kB / 1.117 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003037/0.4382, allocations: 344.7 kB / 1.117 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.4382, allocations: 34.84 kB / 1.117 GB, free: 9.223 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.4382, allocations: 0 / 1.117 GB, free: 9.223 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.001316/0.4395, allocations: 0.5486 MB / 1.118 GB, free: 8.668 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4396, allocations: 55.41 kB / 1.118 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.4407, allocations: 0.9152 MB / 1.118 GB, free: 7.668 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.4408, allocations: 61.64 kB / 1.119 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.4413, allocations: 0.5223 MB / 1.119 GB, free: 7.07 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.4414, allocations: 122.3 kB / 1.119 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.289e-05/0.4415, allocations: 65.62 kB / 1.119 GB, free: 6.879 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4416, allocations: 330.1 kB / 1.12 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.442, allocations: 197.2 kB / 1.12 GB, free: 6.359 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.4434, allocations: 1.151 MB / 1.121 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008756/0.4442, allocations: 479.4 kB / 1.121 GB, free: 4.348 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4443, allocations: 0 / 1.121 GB, free: 4.348 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001388/0.4457, allocations: 0.6579 MB / 1.122 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.4458, allocations: 148.3 kB / 1.122 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4458, allocations: 4 kB / 1.122 GB, free: 3.504 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.4458, allocations: 4 kB / 1.122 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/0.4473, allocations: 247.8 kB / 1.122 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.4489, allocations: 2.958 MB / 1.125 GB, free: 188 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0038/0.4527, allocations: 0.7571 MB / 1.126 GB, free: 15.43 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.4528, allocations: 31.91 kB / 1.126 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.4528, allocations: 4 kB / 1.126 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001066/0.4539, allocations: 0.505 MB / 1.126 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.4539, allocations: 0 / 1.126 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.246e-06/0.4539, allocations: 4 kB / 1.126 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.4546, allocations: 168 kB / 1.127 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.4547, allocations: 4 kB / 1.127 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00356/0.4582, allocations: 0.7339 MB / 1.127 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.4583, allocations: 20 kB / 1.127 GB, free: 13.96 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.0005561/0.4589, allocations: 337.9 kB / 1.128 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.459, allocations: 94.69 kB / 1.128 GB, free: 13.52 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.4602, allocations: 0.5282 MB / 1.128 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.4602, allocations: 4 kB / 1.128 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4602, allocations: 4 kB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.4603, allocations: 0 / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.4625, allocations: 1.264 MB / 1.13 GB, free: 11.65 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4625, allocations: 0 / 1.13 GB, free: 11.65 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.463, allocations: 123.8 kB / 1.13 GB, free: 11.53 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.4631, allocations: 4 kB / 1.13 GB, free: 11.53 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.4631, allocations: 8 kB / 1.13 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.4645, allocations: 2.946 MB / 1.133 GB, free: 8.457 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4645, allocations: 0 / 1.133 GB, free: 8.457 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008887/0.4654, allocations: 0.583 MB / 1.133 GB, free: 7.848 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.4658, allocations: 231.7 kB / 1.133 GB, free: 7.602 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.882e-05/0.4659, allocations: 8 kB / 1.133 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005551/0.4664, allocations: 59.84 kB / 1.133 GB, free: 7.535 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.4665, allocations: 35.89 kB / 1.133 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.4666, allocations: 12 kB / 1.133 GB, free: 7.488 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007954/0.4674, allocations: 0.6084 MB / 1.134 GB, free: 6.871 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4674, allocations: 3.938 kB / 1.134 GB, free: 6.867 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001464/0.4688, allocations: 0.5422 MB / 1.135 GB, free: 6.324 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.0006853/0.4695, allocations: 328.8 kB / 1.135 GB, free: 6 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002609/0.4721, allocations: 0.8677 MB / 1.136 GB, free: 5.137 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4722, allocations: 0 / 1.136 GB, free: 5.137 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006127/0.4728, allocations: 236.2 kB / 1.136 GB, free: 4.906 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/0.4757, allocations: 492.5 kB / 1.136 GB, free: 4.43 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.4785, allocations: 1.873 MB / 1.138 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.4791, allocations: 1.021 MB / 1.139 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.00114/0.4803, allocations: 214.9 kB / 1.139 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.4805, allocations: 83.41 kB / 1.14 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of SimCode: time 2.034e-06/0.4805, allocations: 0 / 1.14 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of Templates: time 0.04588/0.5264, allocations: 24.41 MB / 1.163 GB, free: 9.164 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=480 -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/jenkins/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