Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Average,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Average,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Average",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.001027/0.001031, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008006/0.008006, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.246/1.246, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.096/2.096, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002968, allocations: 12 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5589/0.5592, allocations: 142.4 MB / 0.9552 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Average): time 0.0005844/0.5598, allocations: 436.8 kB / 0.9556 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005834/0.5604, allocations: 0.8003 MB / 0.9564 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.5604, allocations: 1.094 kB / 0.9564 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.5605, allocations: 3.938 kB / 0.9564 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.525e-05/0.5605, allocations: 9.031 kB / 0.9564 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.785e-05/0.5606, allocations: 9.094 kB / 0.9564 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.32e-05/0.5606, allocations: 45.25 kB / 0.9565 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.961e-05/0.5607, allocations: 4.688 kB / 0.9565 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.176e-05/0.5607, allocations: 17.39 kB / 0.9565 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.5608, allocations: 20.77 kB / 0.9565 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.5608, allocations: 2.312 kB / 0.9565 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.653e-06/0.5608, allocations: 2.281 kB / 0.9565 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.126e-05/0.5608, allocations: 7.922 kB / 0.9565 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.228e-05/0.5609, allocations: 36.86 kB / 0.9565 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.943e-05/0.5609, allocations: 43.44 kB / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.5609, allocations: 0 / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.22e-07/0.5609, allocations: 1.219 kB / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.846e-06/0.5609, allocations: 0 / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000324/0.5613, allocations: 369 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.5613, allocations: 9.344 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.884e-05/0.5613, allocations: 31.75 kB / 0.957 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.771e-05/0.5613, allocations: 10.95 kB / 0.957 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.228e-05/0.5614, allocations: 170.3 kB / 0.9571 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.651e-06/0.5614, allocations: 1.344 kB / 0.9571 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.5614, allocations: 6.25 kB / 0.9572 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.5616, allocations: 76.97 kB / 0.9572 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.5616, allocations: 9.219 kB / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.5617, allocations: 0 / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.5617, allocations: 1 kB / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.5619, allocations: 86.98 kB / 0.9573 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002104/0.5622, allocations: 270.6 kB / 0.9576 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.5623, allocations: 74.59 kB / 0.9577 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.5625, allocations: 49.11 kB / 0.9577 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.5625, allocations: 1.125 kB / 0.9577 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.5625, allocations: 34.55 kB / 0.9577 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.5625, allocations: 5.25 kB / 0.9577 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004881/0.563, allocations: 163.5 kB / 0.9579 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.945e-05/0.5631, allocations: 51.41 kB / 0.9579 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.473e-05/0.5631, allocations: 106.7 kB / 0.958 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.574e-06/0.5631, allocations: 30.89 kB / 0.9581 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.888e-05/0.5631, allocations: 89.14 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.5632, allocations: 13.34 kB / 0.9582 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/0.5632, allocations: 11.19 kB / 0.9582 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.187e-05/0.5632, allocations: 315.9 kB / 0.9585 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.5634, allocations: 43.47 kB / 0.9585 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.5635, allocations: 42.89 kB / 0.9586 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.5638, allocations: 94.88 kB / 0.9587 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.5638, allocations: 0 / 0.9587 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003119/0.5641, allocations: 120.8 kB / 0.9588 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.5641, allocations: 8.188 kB / 0.9588 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.5641, allocations: 4 kB / 0.9588 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/0.5641, allocations: 0 / 0.9588 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.5643, allocations: 18.64 kB / 0.9588 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.5643, allocations: 1.594 kB / 0.9588 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.526e-05/0.5643, allocations: 23.64 kB / 0.9588 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.5644, allocations: 0 / 0.9588 GB, free: 4.57 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 3.825e-05/0.5644, allocations: 120.5 kB / 0.9589 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.5644, allocations: 1.375 kB / 0.9589 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.5644, allocations: 9.281 kB / 0.9589 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.5645, allocations: 1.375 kB / 0.9589 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.5645, allocations: 0 / 0.9589 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.5645, allocations: 0 / 0.9589 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.999e-05/0.5646, allocations: 177.8 kB / 0.9591 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.5646, allocations: 0 / 0.9591 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.995e-05/0.5647, allocations: 27.09 kB / 0.9591 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.5647, allocations: 0 / 0.9591 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-06/0.5647, allocations: 1.375 kB / 0.9591 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5647, allocations: 3.984 kB / 0.9592 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5647, allocations: 1.375 kB / 0.9592 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.565, allocations: 222.4 kB / 0.9594 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.372e-05/0.565, allocations: 82.47 kB / 0.9594 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.025e-05/0.565, allocations: 1.375 kB / 0.9594 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.973e-05/0.5651, allocations: 18.98 kB / 0.9595 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.741e-05/0.5652, allocations: 2.75 kB / 0.9595 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.5652, allocations: 3.938 kB / 0.9595 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.297e-05/0.5652, allocations: 94.12 kB / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5652, allocations: 0 / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001969/0.5654, allocations: 6.875 kB / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004446/0.5659, allocations: 0.7553 MB / 0.9603 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.5662, allocations: 93.48 kB / 0.9604 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.5662, allocations: 0 / 0.9604 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.5663, allocations: 46.22 kB / 0.9604 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.5666, allocations: 12.75 kB / 0.9604 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.5669, allocations: 173.5 kB / 0.9606 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.315e-05/0.567, allocations: 0.6836 MB / 0.9613 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.651e-05/0.567, allocations: 5.328 kB / 0.9613 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.567, allocations: 12.69 kB / 0.9613 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.567, allocations: 3.938 kB / 0.9613 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9595/1.527, allocations: 1.298 MB / 0.9626 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/1.527, allocations: 212 kB / 0.9628 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/3.04, allocations: 0 / 0.9628 GB, free: 1.301 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Average.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches