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.007305/0.007305, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001625/0.001625, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.887/2.887, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 71.88 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3549, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.0344/0.3894, allocations: 29.82 MB / 1.237 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01269/0.4021, allocations: 8.15 MB / 1.245 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.4038, allocations: 27.81 kB / 1.245 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.4053, allocations: 428.9 kB / 1.245 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004273/0.4096, allocations: 1.374 MB / 1.247 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.4128, allocations: 1.15 MB / 1.248 GB, free: 0.5898 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.7235/1.136, allocations: 3.541 MB / 1.251 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002845/1.139, allocations: 1.325 MB / 1.252 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004894/1.144, allocations: 1.697 MB / 1.254 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005441/1.15, allocations: 1.627 MB / 1.256 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001019/1.151, allocations: 123.6 kB / 1.256 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003935/1.155, allocations: 1.014 MB / 1.257 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007838/1.155, allocations: 406.8 kB / 1.257 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002/1.157, allocations: 0.7519 MB / 1.258 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005847/1.163, allocations: 2.193 MB / 1.26 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/1.163, allocations: 0 / 1.26 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.767e-06/1.163, allocations: 0.6875 kB / 1.26 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.177e-05/1.163, allocations: 3.938 kB / 1.26 GB, free: 4.672 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.005663/1.169, allocations: 1.68 MB / 1.262 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/1.169, allocations: 9.719 kB / 1.262 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005497/1.17, allocations: 150.2 kB / 1.262 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002413/1.172, allocations: 0.9231 MB / 1.263 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/1.172, allocations: 81.53 kB / 1.263 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/1.173, allocations: 116.7 kB / 1.263 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/1.174, allocations: 0.641 MB / 1.264 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/1.174, allocations: 3.281 kB / 1.264 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.858e-05/1.174, allocations: 23.5 kB / 1.264 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.63e-05/1.174, allocations: 14.75 kB / 1.264 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/1.175, allocations: 461.5 kB / 1.264 GB, free: 3.281 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.005543/1.181, allocations: 2.872 MB / 1.267 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008736/1.182, allocations: 306.7 kB / 1.267 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004089/1.182, allocations: 151.3 kB / 1.267 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002979/1.182, allocations: 347.3 kB / 1.268 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/1.182, allocations: 37.25 kB / 1.268 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.434e-06/1.182, allocations: 0.5938 kB / 1.268 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.001782/1.184, allocations: 0.5318 MB / 1.268 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/1.184, allocations: 55.25 kB / 1.268 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/1.186, allocations: 0.9061 MB / 1.269 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001387/1.186, allocations: 53.98 kB / 1.269 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000516/1.186, allocations: 491.4 kB / 1.27 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/1.186, allocations: 118.5 kB / 1.27 GB, free: 0.9375 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005474/1.187, allocations: 288.9 kB / 1.27 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.303e-05/1.187, allocations: 328.4 kB / 1.27 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/1.188, allocations: 198.1 kB / 1.271 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/1.189, allocations: 1.146 MB / 1.272 GB, free: 15.64 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009196/1.19, allocations: 464.1 kB / 1.272 GB, free: 15.56 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.19, allocations: 1.25 kB / 1.272 GB, free: 15.56 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001613/1.192, allocations: 0.6494 MB / 1.273 GB, free: 15.47 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/1.192, allocations: 12.66 kB / 1.273 GB, free: 15.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/1.192, allocations: 6.875 kB / 1.273 GB, free: 15.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/1.192, allocations: 3.812 kB / 1.273 GB, free: 15.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/1.193, allocations: 231.6 kB / 1.273 GB, free: 15.46 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/1.195, allocations: 2.955 MB / 1.276 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003958/1.199, allocations: 0.697 MB / 1.277 GB, free: 12.47 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/1.199, allocations: 31.22 kB / 1.277 GB, free: 12.47 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009728/1.2, allocations: 367.4 kB / 1.277 GB, free: 12.38 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001558/1.202, allocations: 1.158 MB / 1.278 GB, free: 11.39 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008237/1.203, allocations: 455.6 kB / 1.279 GB, free: 11.28 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.569e-06/1.203, allocations: 1.125 kB / 1.279 GB, free: 11.28 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001847/1.204, allocations: 0.6561 MB / 1.279 GB, free: 11.19 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.204, allocations: 5.719 kB / 1.279 GB, free: 11.19 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/1.205, allocations: 3.594 kB / 1.279 GB, free: 11.19 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/1.205, allocations: 9.859 kB / 1.279 GB, free: 11.19 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007099/1.205, allocations: 162.4 kB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/1.205, allocations: 7.328 kB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004909/1.21, allocations: 0.9611 MB / 1.28 GB, free: 11.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.072e-05/1.21, allocations: 29.33 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.0003883/1.211, allocations: 239.2 kB / 1.281 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/1.211, allocations: 94.56 kB / 1.281 GB, free: 10.89 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/1.212, allocations: 0.5106 MB / 1.281 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/1.212, allocations: 4.953 kB / 1.281 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.212, allocations: 0 / 1.281 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/1.212, allocations: 1.922 kB / 1.281 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/1.215, allocations: 1.258 MB / 1.282 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/1.215, allocations: 2.062 kB / 1.282 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005355/1.215, allocations: 120.6 kB / 1.282 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/1.215, allocations: 2.281 kB / 1.282 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/1.215, allocations: 17.19 kB / 1.282 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001651/1.217, allocations: 2.934 MB / 1.285 GB, free: 7.527 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.217, allocations: 4.656 kB / 1.285 GB, free: 7.527 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/1.218, allocations: 0.569 MB / 1.286 GB, free: 7.293 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/1.219, allocations: 212.5 kB / 1.286 GB, free: 7.145 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/1.219, allocations: 8.766 kB / 1.286 GB, free: 7.145 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/1.219, allocations: 32.5 kB / 1.286 GB, free: 7.141 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/1.219, allocations: 33.44 kB / 1.286 GB, free: 7.141 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/1.219, allocations: 16.27 kB / 1.286 GB, free: 7.141 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009857/1.22, allocations: 0.6079 MB / 1.287 GB, free: 7.031 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.51e-07/1.22, allocations: 0 / 1.287 GB, free: 7.031 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002286/1.223, allocations: 0.5446 MB / 1.287 GB, free: 6.957 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.000853/1.224, allocations: 337 kB / 1.288 GB, free: 6.82 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0032/1.227, allocations: 0.848 MB / 1.288 GB, free: 6.801 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.227, allocations: 0 / 1.288 GB, free: 6.801 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006439/1.227, allocations: 232.5 kB / 1.289 GB, free: 6.793 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/1.23, allocations: 412.8 kB / 1.289 GB, free: 6.73 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/1.233, allocations: 1.519 MB / 1.291 GB, free: 6.047 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/1.234, allocations: 1.024 MB / 1.292 GB, free: 5.332 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00155/1.235, allocations: 204.2 kB / 1.292 GB, free: 5.281 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/1.235, allocations: 80.66 kB / 1.292 GB, free: 5.273 MB / 1.014 GB Notification: Performance of SimCode: time 8.71e-07/1.235, allocations: 0 / 1.292 GB, free: 5.273 MB / 1.014 GB Notification: Performance of Templates: time 0.05795/1.293, allocations: 25.42 MB / 1.317 GB, free: 14.29 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