Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",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.001489/0.001489, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.514/2.514, allocations: 437 MB / 0.7104 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 0.8694 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6303/0.6316, allocations: 151.6 MB / 1.017 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001916/0.6336, allocations: 0.8188 MB / 1.018 GB, free: 1.727 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.6346, allocations: 1.014 MB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.419e-05/0.6347, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.832e-05/0.6348, allocations: 15.8 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.726e-05/0.6349, allocations: 19.8 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.6352, allocations: 83.83 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.6354, allocations: 127.6 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.6355, allocations: 53.38 kB / 1.02 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.952e-05/0.6356, allocations: 51.83 kB / 1.02 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.615e-05/0.6357, allocations: 55.77 kB / 1.02 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.6357, allocations: 11.94 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.6358, allocations: 67.89 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.148e-05/0.6359, allocations: 31.91 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.972e-05/0.6359, allocations: 63.59 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.6362, allocations: 185.7 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.6362, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6362, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.6362, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007933/0.637, allocations: 478.8 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.6371, allocations: 12.03 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.727e-05/0.6371, allocations: 42.73 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.6372, allocations: 16.75 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.6374, allocations: 217.5 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.6374, allocations: 8.375 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.6374, allocations: 8.375 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.638, allocations: 182 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.638, allocations: 3.938 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.638, allocations: 3.938 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.6381, allocations: 19.98 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007086/0.6388, allocations: 195.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008564/0.6396, allocations: 464.3 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.6401, allocations: 146.4 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003689/0.6404, allocations: 128.8 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.6405, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.6405, allocations: 30.56 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.6405, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001208/0.6417, allocations: 398.8 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.6417, allocations: 51.41 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.6419, allocations: 147.6 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.6419, allocations: 33.7 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.268e-05/0.6419, allocations: 108.4 kB / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.687e-05/0.642, allocations: 47.33 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.058e-05/0.6421, allocations: 25.7 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6422, allocations: 326.8 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.6425, allocations: 111.9 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.6429, allocations: 115.8 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007076/0.6436, allocations: 237.9 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.6436, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007821/0.6444, allocations: 282.7 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.6444, allocations: 4 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.6444, allocations: 4 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.6445, allocations: 0 / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.6447, allocations: 39.89 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6447, allocations: 3.938 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.6449, allocations: 51.77 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.6449, allocations: 0 / 1.024 GB, free: 11.85 MB / 0.7794 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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 9.05e-05/0.645, allocations: 127.1 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.455e-05/0.6451, allocations: 7.906 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.6451, allocations: 16.84 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/0.6451, allocations: 11.98 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.6451, allocations: 3.938 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6451, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.6454, allocations: 229.5 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.6454, allocations: 0 / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.6456, allocations: 35.89 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.6456, allocations: 0 / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.6456, allocations: 7.938 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.6456, allocations: 4 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6456, allocations: 7.938 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.6465, allocations: 383.1 kB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.929e-05/0.6465, allocations: 85.02 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.6465, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.6467, allocations: 27.95 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.6468, allocations: 15.92 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.6468, allocations: 4 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.434e-05/0.6469, allocations: 121.1 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6469, allocations: 0 / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002753/0.6472, allocations: 43.84 kB / 1.025 GB, free: 10.65 MB / 0.7794 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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.001185/0.6484, allocations: 0.9286 MB / 1.026 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008231/0.6492, allocations: 268.1 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6492, allocations: 0 / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003936/0.6496, allocations: 131.9 kB / 1.026 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.65, allocations: 29.72 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.6532, allocations: 2.154 MB / 1.028 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.6535, allocations: 0.7235 MB / 1.029 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.641e-05/0.6536, allocations: 15.98 kB / 1.029 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.809e-05/0.6537, allocations: 39.42 kB / 1.029 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6537, allocations: 0 / 1.029 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.6731, allocations: 3.5 MB / 1.032 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.831, allocations: 10.75 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches