Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_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.004999/0.004999, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001081/0.001081, allocations: 200.8 kB / 16.68 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 3.015/3.015, allocations: 469.4 MB / 0.7421 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 71.89 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3329, allocations: 159.1 MB / 1.22 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002447/0.3354, allocations: 0.8467 MB / 1.221 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.3368, allocations: 1.006 MB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.3369, allocations: 0 / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.3371, allocations: 15.8 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.351e-05/0.3372, allocations: 19.8 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004689/0.3376, allocations: 91.81 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000164/0.3378, allocations: 131.6 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.338, allocations: 57.09 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.3381, allocations: 51.83 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.332e-05/0.3382, allocations: 55.77 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.3382, allocations: 15.94 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.3384, allocations: 91.84 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.3385, allocations: 47.83 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.273e-05/0.3386, allocations: 63.59 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3389, allocations: 203.1 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3389, allocations: 8 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.695e-06/0.3389, allocations: 0 / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.3389, allocations: 3.938 kB / 1.222 GB, free: 11.89 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0009164/0.3398, allocations: 496.3 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3399, allocations: 8.031 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.807e-05/0.3399, allocations: 50.73 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.34, allocations: 20.8 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.3402, allocations: 214 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.3403, allocations: 8.375 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.3403, allocations: 4.375 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.3408, allocations: 209.9 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3409, allocations: 7.938 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3409, allocations: 8 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.3409, allocations: 0 / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007342/0.3416, allocations: 223.8 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009403/0.3426, allocations: 0.5197 MB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.343, allocations: 170.4 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.3435, allocations: 157.6 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.842e-05/0.3435, allocations: 12 kB / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.3435, allocations: 30.56 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 3.226e-06/0.3436, allocations: 3.984 kB / 1.224 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001386/0.3449, allocations: 481.1 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.345, allocations: 55.34 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3451, allocations: 153 kB / 1.225 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.3452, allocations: 29.7 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.3452, allocations: 108.6 kB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.642e-05/0.3453, allocations: 71.33 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/0.3454, allocations: 33.7 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3455, allocations: 326.8 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.3459, allocations: 140 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.3463, allocations: 131.8 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007751/0.3471, allocations: 300.6 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3471, allocations: 0 / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008483/0.3479, allocations: 338.1 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.348, allocations: 4 kB / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.348, allocations: 4 kB / 1.227 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.348, allocations: 0 / 1.227 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.3483, allocations: 43.83 kB / 1.227 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3483, allocations: 7.984 kB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.3485, allocations: 31.86 kB / 1.227 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.3485, allocations: 11.98 kB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * 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: 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 prepare postOptimizeDAE: time 0.0001313/0.3486, allocations: 134.4 kB / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.3487, allocations: 15.91 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009238/0.3496, allocations: 354.5 kB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.3496, allocations: 11.94 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.3496, allocations: 0 / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3496, allocations: 0 / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.3499, allocations: 269.5 kB / 1.227 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3499, allocations: 0 / 1.227 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.3501, allocations: 39.95 kB / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3501, allocations: 0 / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3502, allocations: 0 / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3502, allocations: 3.938 kB / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3502, allocations: 4 kB / 1.227 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009072/0.3511, allocations: 443.1 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.3512, allocations: 92.95 kB / 1.228 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.3512, allocations: 0 / 1.228 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.3514, allocations: 35.89 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.3515, allocations: 11.98 kB / 1.228 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.3515, allocations: 7.984 kB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.686e-05/0.3516, allocations: 107.3 kB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3516, allocations: 0 / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003116/0.3519, allocations: 47.89 kB / 1.228 GB, free: 5.688 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * 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: 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.001384/0.3533, allocations: 0.9971 MB / 1.229 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009621/0.3543, allocations: 383.1 kB / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3543, allocations: 0 / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.3548, allocations: 243.8 kB / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.3551, allocations: 21.62 kB / 1.23 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.3589, allocations: 2.344 MB / 1.232 GB, free: 1.574 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.3592, allocations: 0.7352 MB / 1.233 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.234e-05/0.3593, allocations: 19.97 kB / 1.233 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.3594, allocations: 43.42 kB / 1.233 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.3594, allocations: 0 / 1.233 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.3821, allocations: 3.95 MB / 1.237 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.075, allocations: 0.5938 kB / 1.237 GB, free: 12.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches