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.001423/0.001423, allocations: 107 kB / 16.27 MB, free: 6.414 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.001472/0.001472, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.479/2.479, allocations: 437 MB / 0.711 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 57.12 kB / 0.8699 GB, free: 2.145 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3191, allocations: 151.6 MB / 1.018 GB, free: 10.59 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01971/0.3389, allocations: 15.4 MB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.006933/0.3459, allocations: 4.677 MB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006895/0.3466, allocations: 11.94 kB / 1.038 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007154/0.3473, allocations: 194.5 kB / 1.038 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001718/0.3491, allocations: 0.5685 MB / 1.038 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.3509, allocations: 0.5695 MB / 1.039 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001406/0.3523, allocations: 0.947 MB / 1.04 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006177/0.3529, allocations: 324 kB / 1.04 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009763/0.3539, allocations: 410.3 kB / 1.041 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.3545, allocations: 302.6 kB / 1.041 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.607e-05/0.3546, allocations: 24 kB / 1.041 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000676/0.3553, allocations: 215.6 kB / 1.041 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.3554, allocations: 83.61 kB / 1.041 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.3557, allocations: 202.8 kB / 1.041 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007844/0.3565, allocations: 0.5022 MB / 1.042 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3565, allocations: 4 kB / 1.042 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3565, allocations: 0 / 1.042 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.397e-05/0.3566, allocations: 0 / 1.042 GB, free: 2.109 MB / 0.8106 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.001218/0.3578, allocations: 0.728 MB / 1.043 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3578, allocations: 16.91 kB / 1.043 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.358, allocations: 52.31 kB / 1.043 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.3585, allocations: 386 kB / 1.043 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.3586, allocations: 24.56 kB / 1.043 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.3586, allocations: 24 kB / 1.043 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.3589, allocations: 195.2 kB / 1.043 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.359, allocations: 3.984 kB / 1.043 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.359, allocations: 12 kB / 1.043 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.359, allocations: 11.92 kB / 1.043 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.3593, allocations: 133.6 kB / 1.043 GB, free: 456 kB / 0.8106 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.001453/0.3607, allocations: 0.879 MB / 1.044 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004672/0.3612, allocations: 114.6 kB / 1.044 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.3613, allocations: 52.83 kB / 1.044 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.3616, allocations: 332.4 kB / 1.045 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3616, allocations: 34.55 kB / 1.045 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.3616, allocations: 0 / 1.045 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0003931/0.362, allocations: 173.4 kB / 1.045 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.3621, allocations: 63.41 kB / 1.045 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.3626, allocations: 457.8 kB / 1.045 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.3627, allocations: 29.7 kB / 1.045 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.3628, allocations: 212.2 kB / 1.046 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.3629, allocations: 43.45 kB / 1.046 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.601e-05/0.363, allocations: 49.7 kB / 1.046 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3631, allocations: 346.8 kB / 1.046 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.3632, allocations: 55.97 kB / 1.046 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.3634, allocations: 103.8 kB / 1.046 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.3636, allocations: 139.2 kB / 1.046 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3636, allocations: 0 / 1.046 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003615/0.364, allocations: 228.9 kB / 1.047 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.364, allocations: 8 kB / 1.047 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.364, allocations: 4.062 kB / 1.047 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.3641, allocations: 4 kB / 1.047 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.3643, allocations: 43.92 kB / 1.047 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3643, allocations: 4 kB / 1.047 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.3646, allocations: 35.75 kB / 1.047 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.3647, allocations: 4 kB / 1.047 GB, free: 12.82 MB / 0.8262 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.0001547/0.3648, allocations: 153.8 kB / 1.047 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/0.3649, allocations: 47.44 kB / 1.047 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.3653, allocations: 195.8 kB / 1.047 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.3653, allocations: 0 / 1.047 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3653, allocations: 3.984 kB / 1.047 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3653, allocations: 0 / 1.047 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008198/0.3661, allocations: 0.6342 MB / 1.048 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3661, allocations: 0 / 1.048 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.3663, allocations: 27.92 kB / 1.048 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.3663, allocations: 4 kB / 1.048 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3663, allocations: 4 kB / 1.048 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3663, allocations: 4 kB / 1.048 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3663, allocations: 3.938 kB / 1.048 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.3666, allocations: 298.4 kB / 1.048 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.3668, allocations: 124.6 kB / 1.048 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.3668, allocations: 4 kB / 1.048 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.3671, allocations: 15.98 kB / 1.048 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.3671, allocations: 15.92 kB / 1.048 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.3671, allocations: 4 kB / 1.048 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003797/0.3675, allocations: 323.1 kB / 1.048 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3675, allocations: 0 / 1.048 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004626/0.368, allocations: 111.8 kB / 1.049 GB, free: 10.75 MB / 0.8262 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.0005435/0.3685, allocations: 225 kB / 1.049 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.3689, allocations: 135.8 kB / 1.049 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3689, allocations: 0 / 1.049 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.369, allocations: 59.91 kB / 1.049 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.37, allocations: 183.1 kB / 1.049 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.3715, allocations: 0.6989 MB / 1.05 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.3719, allocations: 0.8035 MB / 1.051 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.372, allocations: 35.44 kB / 1.051 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of SimCode: time 5.62e-07/0.372, allocations: 0 / 1.051 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of Templates: time 0.01162/0.3836, allocations: 6.321 MB / 1.057 GB, free: 2.32 MB / 0.8262 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/jenkins1/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