Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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 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: "" <> buildModelFMU(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004782/0.004782, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001125/0.001125, allocations: 188.6 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.89 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.321, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01796/0.3391, allocations: 15.38 MB / 1.222 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006458/0.3455, allocations: 4.667 MB / 1.227 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006728/0.3462, allocations: 19.88 kB / 1.227 GB, free: 6 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007266/0.347, allocations: 190.6 kB / 1.227 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00175/0.3488, allocations: 0.576 MB / 1.228 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.3504, allocations: 0.5697 MB / 1.228 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001468/0.3519, allocations: 0.9742 MB / 1.229 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005961/0.3525, allocations: 327 kB / 1.229 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008892/0.3534, allocations: 422.3 kB / 1.23 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005384/0.354, allocations: 298.7 kB / 1.23 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.772e-05/0.3541, allocations: 24 kB / 1.23 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005456/0.3546, allocations: 211.6 kB / 1.23 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3548, allocations: 91.55 kB / 1.23 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.355, allocations: 198.8 kB / 1.231 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000793/0.3558, allocations: 0.5022 MB / 1.231 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3558, allocations: 0 / 1.231 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3558, allocations: 0 / 1.231 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.3559, allocations: 4 kB / 1.231 GB, free: 1.645 MB / 0.9825 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.001275/0.3571, allocations: 0.7434 MB / 1.232 GB, free: 0.8516 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3572, allocations: 8.625 kB / 1.232 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/0.3573, allocations: 54.73 kB / 1.232 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.3574, allocations: 48.38 kB / 1.232 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000717/0.3581, allocations: 402 kB / 1.232 GB, free: 308 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.3582, allocations: 24.38 kB / 1.232 GB, free: 284 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.3582, allocations: 31.98 kB / 1.232 GB, free: 252 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.3586, allocations: 191.3 kB / 1.233 GB, free: 56 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3586, allocations: 3.938 kB / 1.233 GB, free: 52 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.3586, allocations: 12 kB / 1.233 GB, free: 40 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3586, allocations: 4 kB / 1.233 GB, free: 36 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.3589, allocations: 129.7 kB / 1.233 GB, free: 15.91 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.001677/0.3606, allocations: 0.8829 MB / 1.234 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.3611, allocations: 114.6 kB / 1.234 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.387e-05/0.3612, allocations: 48.83 kB / 1.234 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000317/0.3615, allocations: 336.4 kB / 1.234 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.3616, allocations: 38.5 kB / 1.234 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 2.134e-06/0.3616, allocations: 3.938 kB / 1.234 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0004401/0.362, allocations: 169.1 kB / 1.234 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.3621, allocations: 59.39 kB / 1.234 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.3627, allocations: 461.9 kB / 1.235 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.3627, allocations: 25.7 kB / 1.235 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.3629, allocations: 208.2 kB / 1.235 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.3629, allocations: 43.45 kB / 1.235 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.363, allocations: 57.59 kB / 1.235 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3632, allocations: 354.7 kB / 1.235 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/0.3633, allocations: 51.97 kB / 1.235 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.3635, allocations: 105 kB / 1.236 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.3637, allocations: 131.3 kB / 1.236 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3637, allocations: 0 / 1.236 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003666/0.364, allocations: 221.1 kB / 1.236 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3641, allocations: 8 kB / 1.236 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3641, allocations: 4 kB / 1.236 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3641, allocations: 4 kB / 1.236 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.3643, allocations: 43.91 kB / 1.236 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3643, allocations: 4 kB / 1.236 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.3646, allocations: 35.67 kB / 1.236 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.3647, allocations: 11.98 kB / 1.236 GB, free: 12.27 MB / 0.9981 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.0001646/0.3649, allocations: 153.7 kB / 1.236 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/0.365, allocations: 43.53 kB / 1.236 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003517/0.3653, allocations: 192.3 kB / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3653, allocations: 0 / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3653, allocations: 4 kB / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3654, allocations: 0 / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008115/0.3662, allocations: 0.6341 MB / 1.237 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.3662, allocations: 4 kB / 1.237 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.3663, allocations: 19.98 kB / 1.237 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3663, allocations: 4 kB / 1.237 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.3663, allocations: 8 kB / 1.237 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3663, allocations: 3.938 kB / 1.237 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3663, allocations: 0 / 1.237 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.3667, allocations: 298.4 kB / 1.237 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001583/0.3668, allocations: 136.5 kB / 1.237 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.736e-05/0.3669, allocations: 0 / 1.237 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.3671, allocations: 15.92 kB / 1.237 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.3672, allocations: 15.98 kB / 1.237 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3672, allocations: 4 kB / 1.237 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004292/0.3676, allocations: 327.1 kB / 1.238 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.026e-06/0.3676, allocations: 0 / 1.238 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005093/0.3682, allocations: 107.8 kB / 1.238 GB, free: 10.21 MB / 0.9981 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.001097/0.3693, allocations: 0.9448 MB / 1.239 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003076/0.3696, allocations: 143.8 kB / 1.239 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3696, allocations: 3.938 kB / 1.239 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.4e-05/0.3697, allocations: 63.91 kB / 1.239 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009541/0.3707, allocations: 167.8 kB / 1.239 GB, free: 8.867 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.3751, allocations: 3.263 MB / 1.242 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3755, allocations: 0.8074 MB / 1.243 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002641/0.3758, allocations: 65.55 kB / 1.243 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.376, allocations: 127.4 kB / 1.243 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of SimCode: time 9.22e-07/0.376, allocations: 0 / 1.243 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6288/1.005, allocations: 11.25 MB / 1.254 GB, free: 38.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/9.176, allocations: 13.38 kB / 1.254 GB, free: 38.98 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.fmu > Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches