Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.002009/0.002009, allocations: 187 kB / 17.34 MB, free: 5.762 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.524/2.524, allocations: 437 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 68.11 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9226/0.924, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1308/1.055, allocations: 112.7 MB / 1.277 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03064/1.086, allocations: 20.25 MB / 1.297 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00437/1.09, allocations: 103.4 kB / 1.297 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.004757/1.095, allocations: 1.304 MB / 1.298 GB, free: 13.1 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01131/1.106, allocations: 3.877 MB / 1.302 GB, free: 9.211 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0082/1.114, allocations: 3.123 MB / 1.305 GB, free: 6.125 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01106/1.125, allocations: 7.23 MB / 1.312 GB, free: 14.87 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004565/1.13, allocations: 2.583 MB / 1.315 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007468/1.138, allocations: 2.891 MB / 1.318 GB, free: 9.34 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004331/1.142, allocations: 2.135 MB / 1.32 GB, free: 7.195 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.001058/1.143, allocations: 252 kB / 1.32 GB, free: 6.949 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004659/1.148, allocations: 1.65 MB / 1.322 GB, free: 5.297 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001358/1.149, allocations: 0.6812 MB / 1.322 GB, free: 4.613 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003156/1.152, allocations: 1.52 MB / 1.324 GB, free: 3.086 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.007621/1.16, allocations: 4.391 MB / 1.328 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/1.16, allocations: 0 / 1.328 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.244e-06/1.16, allocations: 0 / 1.328 GB, free: 14.68 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001882/1.16, allocations: 4 kB / 1.328 GB, free: 14.68 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.007494/1.168, allocations: 3.226 MB / 1.331 GB, free: 11.39 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/1.168, allocations: 16.88 kB / 1.331 GB, free: 11.37 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/1.169, allocations: 324.5 kB / 1.332 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004972/1.174, allocations: 2.202 MB / 1.334 GB, free: 8.777 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/1.174, allocations: 123 kB / 1.334 GB, free: 8.656 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003539/1.174, allocations: 168 kB / 1.334 GB, free: 8.492 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003244/1.178, allocations: 1.608 MB / 1.336 GB, free: 6.82 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.523e-05/1.178, allocations: 11.94 kB / 1.336 GB, free: 6.809 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001625/1.178, allocations: 60 kB / 1.336 GB, free: 6.75 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-05/1.178, allocations: 43.94 kB / 1.336 GB, free: 6.707 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002284/1.18, allocations: 1.147 MB / 1.337 GB, free: 5.555 MB / 1.061 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.01295/1.193, allocations: 7.904 MB / 1.345 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008651/1.194, allocations: 485.8 kB / 1.345 GB, free: 12.66 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/1.195, allocations: 323 kB / 1.345 GB, free: 12.34 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006222/1.195, allocations: 0.7563 MB / 1.346 GB, free: 11.42 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.195, allocations: 43.12 kB / 1.346 GB, free: 11.36 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.685e-06/1.195, allocations: 0 / 1.346 GB, free: 11.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002388/1.198, allocations: 0.9958 MB / 1.347 GB, free: 10.36 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/1.198, allocations: 55.97 kB / 1.347 GB, free: 10.3 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003841/1.202, allocations: 2.339 MB / 1.349 GB, free: 7.945 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.000186/1.202, allocations: 49.64 kB / 1.349 GB, free: 7.891 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.203, allocations: 1.153 MB / 1.351 GB, free: 6.727 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/1.203, allocations: 216.9 kB / 1.351 GB, free: 6.512 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004356/1.204, allocations: 254.6 kB / 1.351 GB, free: 6.254 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.204, allocations: 353.9 kB / 1.351 GB, free: 5.902 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007265/1.204, allocations: 357.9 kB / 1.352 GB, free: 5.551 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/1.205, allocations: 0.7424 MB / 1.352 GB, free: 4.652 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/1.207, allocations: 0.9824 MB / 1.353 GB, free: 3.555 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/1.207, allocations: 0 / 1.353 GB, free: 3.555 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002695/1.21, allocations: 1.291 MB / 1.355 GB, free: 2.254 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/1.21, allocations: 8 kB / 1.355 GB, free: 2.246 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/1.21, allocations: 8 kB / 1.355 GB, free: 2.238 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.698e-05/1.21, allocations: 19.98 kB / 1.355 GB, free: 2.219 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.211, allocations: 251.6 kB / 1.355 GB, free: 1.973 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/1.211, allocations: 20.44 kB / 1.355 GB, free: 1.953 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/1.213, allocations: 166.3 kB / 1.355 GB, free: 1.789 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/1.213, allocations: 51.98 kB / 1.355 GB, free: 1.738 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001392/1.214, allocations: 0.7641 MB / 1.356 GB, free: 0.9688 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009318/1.215, allocations: 0.731 MB / 1.357 GB, free: 84 kB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001444/1.217, allocations: 0.9485 MB / 1.358 GB, free: 15.02 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.296e-06/1.217, allocations: 8 kB / 1.358 GB, free: 15.01 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002553/1.219, allocations: 1.273 MB / 1.359 GB, free: 13.73 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/1.219, allocations: 8 kB / 1.359 GB, free: 13.72 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.219, allocations: 8.844 kB / 1.359 GB, free: 13.71 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/1.219, allocations: 16 kB / 1.359 GB, free: 13.7 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000983/1.22, allocations: 247.6 kB / 1.359 GB, free: 13.45 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/1.22, allocations: 19.94 kB / 1.359 GB, free: 13.43 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/1.222, allocations: 123.2 kB / 1.359 GB, free: 13.31 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/1.222, allocations: 47.98 kB / 1.359 GB, free: 13.27 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000335/1.222, allocations: 259.8 kB / 1.359 GB, free: 13 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006858/1.223, allocations: 237 kB / 1.36 GB, free: 12.77 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/1.225, allocations: 0.8779 MB / 1.361 GB, free: 11.87 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/1.225, allocations: 12 kB / 1.361 GB, free: 11.86 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.225, allocations: 0 / 1.361 GB, free: 11.86 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001016/1.226, allocations: 0.6891 MB / 1.361 GB, free: 11.14 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/1.231, allocations: 2.578 MB / 1.364 GB, free: 8.488 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/1.231, allocations: 8.078 kB / 1.364 GB, free: 8.48 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/1.231, allocations: 127.8 kB / 1.364 GB, free: 8.355 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/1.231, allocations: 0 / 1.364 GB, free: 8.355 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.064e-05/1.231, allocations: 27.92 kB / 1.364 GB, free: 8.328 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.231, allocations: 4 kB / 1.364 GB, free: 8.324 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.231, allocations: 0 / 1.364 GB, free: 8.324 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/1.234, allocations: 1.313 MB / 1.365 GB, free: 6.98 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.235, allocations: 421.9 kB / 1.366 GB, free: 6.547 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004458/1.235, allocations: 12 kB / 1.366 GB, free: 6.535 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/1.236, allocations: 47.94 kB / 1.366 GB, free: 6.488 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.236, allocations: 40.45 kB / 1.366 GB, free: 6.445 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.14e-05/1.237, allocations: 39.97 kB / 1.366 GB, free: 6.406 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002618/1.239, allocations: 1.569 MB / 1.367 GB, free: 4.832 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.61e-07/1.239, allocations: 0 / 1.367 GB, free: 4.832 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0035/1.243, allocations: 1.103 MB / 1.368 GB, free: 3.727 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001923/1.245, allocations: 0.7567 MB / 1.369 GB, free: 3.066 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002757/1.247, allocations: 1.354 MB / 1.37 GB, free: 1.715 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.247, allocations: 4 kB / 1.37 GB, free: 1.711 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0006139/1.248, allocations: 324.4 kB / 1.371 GB, free: 1.395 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006546/1.255, allocations: 1.392 MB / 1.372 GB, free: 40 kB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009247/1.264, allocations: 3.733 MB / 1.376 GB, free: 12.26 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002344/1.266, allocations: 1.586 MB / 1.377 GB, free: 10.64 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/1.267, allocations: 183.4 kB / 1.377 GB, free: 10.46 MB / 1.107 GB Notification: Performance of SimCode: time 1.042e-06/1.267, allocations: 0 / 1.377 GB, free: 10.46 MB / 1.107 GB Notification: Performance of Templates: time 0.06174/1.329, allocations: 39.82 MB / 1.416 GB, free: 2.887 MB / 1.139 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches