Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.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.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing") translateModel(Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007581/0.007581, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.001761/0.001761, allocations: 199.4 kB / 16.67 MB, free: 5.531 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.341/1.341, allocations: 222.9 MB / 240.4 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.443/2.443, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7782/0.7795, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01656/0.7961, allocations: 15.41 MB / 1.182 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.006681/0.8028, allocations: 4.672 MB / 1.186 GB, free: 15.68 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005385/0.8034, allocations: 15.88 kB / 1.186 GB, free: 15.66 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005936/0.804, allocations: 190.6 kB / 1.186 GB, free: 15.47 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.8055, allocations: 0.5919 MB / 1.187 GB, free: 14.88 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.8069, allocations: 0.5718 MB / 1.188 GB, free: 14.31 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001155/0.8081, allocations: 0.9704 MB / 1.189 GB, free: 13.34 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.8086, allocations: 315.8 kB / 1.189 GB, free: 13.02 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006625/0.8093, allocations: 410.3 kB / 1.189 GB, free: 12.62 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003944/0.8097, allocations: 310.5 kB / 1.19 GB, free: 12.31 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.294e-05/0.8097, allocations: 28 kB / 1.19 GB, free: 12.29 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004638/0.8102, allocations: 211.6 kB / 1.19 GB, free: 12.08 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.8103, allocations: 87.61 kB / 1.19 GB, free: 11.99 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.8105, allocations: 206.8 kB / 1.19 GB, free: 11.79 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006689/0.8112, allocations: 0.5101 MB / 1.191 GB, free: 11.29 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.8112, allocations: 4 kB / 1.191 GB, free: 11.28 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8112, allocations: 0 / 1.191 GB, free: 11.28 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.8112, allocations: 0 / 1.191 GB, free: 11.28 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001119/0.8124, allocations: 0.7471 MB / 1.191 GB, free: 10.48 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.8124, allocations: 8.922 kB / 1.191 GB, free: 10.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.748e-05/0.8125, allocations: 56.53 kB / 1.191 GB, free: 10.42 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.8133, allocations: 418.3 kB / 1.192 GB, free: 9.977 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.8133, allocations: 24.56 kB / 1.192 GB, free: 9.953 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.979e-05/0.8134, allocations: 24 kB / 1.192 GB, free: 9.93 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003278/0.8137, allocations: 191.3 kB / 1.192 GB, free: 9.738 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.8137, allocations: 0 / 1.192 GB, free: 9.738 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.8138, allocations: 8 kB / 1.192 GB, free: 9.73 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.8138, allocations: 8 kB / 1.192 GB, free: 9.723 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.814, allocations: 137.7 kB / 1.192 GB, free: 9.59 MB / 0.92 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.001469/0.8155, allocations: 0.8754 MB / 1.193 GB, free: 8.637 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004478/0.816, allocations: 114.6 kB / 1.193 GB, free: 8.516 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.688e-05/0.816, allocations: 48.84 kB / 1.193 GB, free: 8.465 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.8163, allocations: 340.4 kB / 1.193 GB, free: 8.059 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.8164, allocations: 38.56 kB / 1.193 GB, free: 8.012 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.8164, allocations: 0 / 1.193 GB, free: 8.012 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0003677/0.8167, allocations: 181.2 kB / 1.194 GB, free: 7.828 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.8168, allocations: 51.41 kB / 1.194 GB, free: 7.766 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/0.8173, allocations: 461.9 kB / 1.194 GB, free: 7.305 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.8174, allocations: 25.7 kB / 1.194 GB, free: 7.273 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.8175, allocations: 216.5 kB / 1.194 GB, free: 7.059 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.8176, allocations: 43.58 kB / 1.194 GB, free: 7.016 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-05/0.8177, allocations: 57.64 kB / 1.194 GB, free: 6.953 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.8178, allocations: 354.8 kB / 1.195 GB, free: 6.598 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.35e-05/0.8179, allocations: 39.98 kB / 1.195 GB, free: 6.559 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.8181, allocations: 105.2 kB / 1.195 GB, free: 6.438 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.8183, allocations: 147.2 kB / 1.195 GB, free: 6.281 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.8183, allocations: 3.938 kB / 1.195 GB, free: 6.277 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003545/0.8186, allocations: 217.3 kB / 1.195 GB, free: 6.059 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.8187, allocations: 4 kB / 1.195 GB, free: 6.055 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.8187, allocations: 0 / 1.195 GB, free: 6.055 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.8187, allocations: 4 kB / 1.195 GB, free: 6.051 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.8189, allocations: 43.97 kB / 1.195 GB, free: 6.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.8189, allocations: 7.938 kB / 1.195 GB, free: 6 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.8192, allocations: 35.83 kB / 1.195 GB, free: 5.965 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.8193, allocations: 11.98 kB / 1.195 GB, free: 5.953 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.0001456/0.8194, allocations: 157.7 kB / 1.196 GB, free: 5.789 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-05/0.8195, allocations: 39.72 kB / 1.196 GB, free: 5.75 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003417/0.8198, allocations: 202.2 kB / 1.196 GB, free: 5.551 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.8199, allocations: 8 kB / 1.196 GB, free: 5.543 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8199, allocations: 0 / 1.196 GB, free: 5.543 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.8199, allocations: 0 / 1.196 GB, free: 5.543 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.8206, allocations: 0.6186 MB / 1.196 GB, free: 4.855 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.8207, allocations: 4 kB / 1.196 GB, free: 4.852 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.8208, allocations: 27.92 kB / 1.196 GB, free: 4.824 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.8208, allocations: 128 / 1.196 GB, free: 4.824 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.8208, allocations: 8 kB / 1.196 GB, free: 4.816 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.8208, allocations: 0 / 1.196 GB, free: 4.816 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.8208, allocations: 3.938 kB / 1.196 GB, free: 4.812 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.8211, allocations: 302.6 kB / 1.197 GB, free: 4.488 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.8213, allocations: 140.7 kB / 1.197 GB, free: 4.332 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.8213, allocations: 0 / 1.197 GB, free: 4.332 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.8215, allocations: 12.27 kB / 1.197 GB, free: 4.32 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.8216, allocations: 15.92 kB / 1.197 GB, free: 4.305 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.8216, allocations: 8 kB / 1.197 GB, free: 4.297 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000379/0.822, allocations: 327 kB / 1.197 GB, free: 3.98 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.81e-07/0.822, allocations: 7.938 kB / 1.197 GB, free: 3.973 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004413/0.8224, allocations: 95.88 kB / 1.197 GB, free: 3.879 MB / 0.92 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0004215/0.8229, allocations: 225.6 kB / 1.197 GB, free: 3.66 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002845/0.8232, allocations: 135.9 kB / 1.198 GB, free: 3.527 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.8232, allocations: 0 / 1.198 GB, free: 3.527 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.231e-05/0.8233, allocations: 63.86 kB / 1.198 GB, free: 3.465 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009441/0.8242, allocations: 180.7 kB / 1.198 GB, free: 3.293 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.8259, allocations: 0.6736 MB / 1.199 GB, free: 2.582 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.8264, allocations: 0.8035 MB / 1.199 GB, free: 1.754 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003099/0.8268, allocations: 70.33 kB / 1.199 GB, free: 1.688 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.8269, allocations: 31.42 kB / 1.199 GB, free: 1.656 MB / 0.92 GB Notification: Performance of SimCode: time 1.112e-06/0.8269, allocations: 0 / 1.199 GB, free: 1.656 MB / 0.92 GB Notification: Performance of Templates: time 0.01404/0.8409, allocations: 7.177 MB / 1.206 GB, free: 10.63 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.sim & ./Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches