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.007911/0.007911, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001627/0.001628, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.921/2.921, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 71.88 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3809, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03353/0.4144, allocations: 29.82 MB / 1.237 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01292/0.4274, allocations: 8.149 MB / 1.245 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002195/0.4297, allocations: 27.81 kB / 1.245 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001704/0.4314, allocations: 432.9 kB / 1.245 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004654/0.4361, allocations: 1.37 MB / 1.247 GB, free: 1.703 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003484/0.4396, allocations: 1.149 MB / 1.248 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.7565/1.196, allocations: 3.53 MB / 1.251 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/1.198, allocations: 1.333 MB / 1.252 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/1.201, allocations: 1.701 MB / 1.254 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002999/1.204, allocations: 1.618 MB / 1.256 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005508/1.205, allocations: 126.3 kB / 1.256 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002883/1.207, allocations: 1.018 MB / 1.257 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005771/1.208, allocations: 407.2 kB / 1.257 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001194/1.209, allocations: 0.7534 MB / 1.258 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003841/1.213, allocations: 2.191 MB / 1.26 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/1.213, allocations: 0.5625 kB / 1.26 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.934e-06/1.213, allocations: 0.8438 kB / 1.26 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.535e-05/1.213, allocations: 0 / 1.26 GB, free: 4.66 MB / 0.9981 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.003599/1.217, allocations: 1.674 MB / 1.262 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/1.217, allocations: 10.75 kB / 1.262 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005179/1.217, allocations: 151.2 kB / 1.262 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/1.219, allocations: 0.93 MB / 1.263 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/1.22, allocations: 83.34 kB / 1.263 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/1.22, allocations: 115.4 kB / 1.263 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/1.221, allocations: 0.6392 MB / 1.264 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/1.221, allocations: 3.375 kB / 1.264 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.538e-05/1.221, allocations: 24.62 kB / 1.264 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/1.221, allocations: 14.72 kB / 1.264 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009132/1.222, allocations: 461.3 kB / 1.264 GB, free: 3.27 MB / 0.9981 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.005419/1.228, allocations: 2.873 MB / 1.267 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007297/1.228, allocations: 301.8 kB / 1.267 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/1.229, allocations: 146.8 kB / 1.267 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002668/1.229, allocations: 349.5 kB / 1.268 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/1.229, allocations: 37.61 kB / 1.268 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/1.229, allocations: 0 / 1.268 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.001936/1.231, allocations: 0.5308 MB / 1.268 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/1.231, allocations: 55.77 kB / 1.268 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/1.232, allocations: 0.9093 MB / 1.269 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002291/1.233, allocations: 56.86 kB / 1.269 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004132/1.233, allocations: 491.6 kB / 1.27 GB, free: 0.9961 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/1.233, allocations: 116.9 kB / 1.27 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004745/1.234, allocations: 289.3 kB / 1.27 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.978e-05/1.234, allocations: 326.9 kB / 1.27 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/1.234, allocations: 197.4 kB / 1.271 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/1.235, allocations: 1.148 MB / 1.272 GB, free: 15.63 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/1.236, allocations: 453.7 kB / 1.272 GB, free: 15.55 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/1.236, allocations: 4 kB / 1.272 GB, free: 15.55 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001485/1.238, allocations: 0.6546 MB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/1.238, allocations: 10.39 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.238, allocations: 2.719 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/1.238, allocations: 4 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/1.239, allocations: 238.8 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/1.241, allocations: 2.957 MB / 1.276 GB, free: 12.51 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/1.244, allocations: 0.694 MB / 1.277 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-05/1.244, allocations: 28.64 kB / 1.277 GB, free: 12.45 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008734/1.245, allocations: 365.8 kB / 1.277 GB, free: 12.37 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00144/1.246, allocations: 1.158 MB / 1.278 GB, free: 11.38 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007589/1.247, allocations: 457.2 kB / 1.279 GB, free: 11.27 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.467e-06/1.247, allocations: 1.094 kB / 1.279 GB, free: 11.27 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001574/1.249, allocations: 0.6574 MB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/1.249, allocations: 6.75 kB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-06/1.249, allocations: 3.031 kB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/1.249, allocations: 12.27 kB / 1.279 GB, free: 11.17 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006791/1.25, allocations: 155.2 kB / 1.279 GB, free: 11.17 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.25, allocations: 9.625 kB / 1.279 GB, free: 11.17 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004475/1.254, allocations: 0.961 MB / 1.28 GB, free: 11.12 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/1.254, allocations: 26.03 kB / 1.28 GB, free: 11.12 MB / 1.014 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.0003987/1.255, allocations: 241.4 kB / 1.281 GB, free: 10.93 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000285/1.255, allocations: 94.16 kB / 1.281 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/1.256, allocations: 0.5134 MB / 1.281 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/1.256, allocations: 5.109 kB / 1.281 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.256, allocations: 0.6094 kB / 1.281 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/1.256, allocations: 3.266 kB / 1.281 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/1.259, allocations: 1.265 MB / 1.282 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/1.259, allocations: 1.219 kB / 1.282 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/1.259, allocations: 118 kB / 1.282 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/1.259, allocations: 7.156 kB / 1.282 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/1.259, allocations: 10.73 kB / 1.282 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/1.261, allocations: 2.943 MB / 1.285 GB, free: 7.512 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.261, allocations: 5.594 kB / 1.285 GB, free: 7.512 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009663/1.262, allocations: 0.5714 MB / 1.286 GB, free: 7.277 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/1.262, allocations: 212.8 kB / 1.286 GB, free: 7.129 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/1.262, allocations: 7.516 kB / 1.286 GB, free: 7.129 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/1.263, allocations: 26.58 kB / 1.286 GB, free: 7.129 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.733e-05/1.263, allocations: 30.75 kB / 1.286 GB, free: 7.125 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/1.263, allocations: 15.27 kB / 1.286 GB, free: 7.125 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009618/1.264, allocations: 0.6075 MB / 1.287 GB, free: 7.016 MB / 1.014 GB Notification: Performance of sort global known variables: time 5.31e-07/1.264, allocations: 1.125 kB / 1.287 GB, free: 7.016 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002305/1.266, allocations: 0.5439 MB / 1.287 GB, free: 6.941 MB / 1.014 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.0008491/1.267, allocations: 335.2 kB / 1.288 GB, free: 6.805 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00262/1.269, allocations: 0.8454 MB / 1.288 GB, free: 6.785 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/1.269, allocations: 0 / 1.288 GB, free: 6.785 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006055/1.27, allocations: 232 kB / 1.289 GB, free: 6.781 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/1.272, allocations: 412.8 kB / 1.289 GB, free: 6.715 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/1.274, allocations: 1.517 MB / 1.291 GB, free: 6.031 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007292/1.275, allocations: 1.024 MB / 1.292 GB, free: 5.316 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00112/1.276, allocations: 215.7 kB / 1.292 GB, free: 5.258 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/1.277, allocations: 81.77 kB / 1.292 GB, free: 5.25 MB / 1.014 GB Notification: Performance of SimCode: time 6.61e-07/1.277, allocations: 0 / 1.292 GB, free: 5.25 MB / 1.014 GB Notification: Performance of Templates: time 0.04952/1.326, allocations: 25 MB / 1.316 GB, free: 14.55 MB / 1.029 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