Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_11_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.005082/0.005082, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.001331/0.001331, allocations: 192 kB / 16.67 MB, free: 5.48 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.764/2.764, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 75.81 kB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.706/0.708, allocations: 159.1 MB / 1.22 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001895/0.7099, allocations: 0.8326 MB / 1.221 GB, free: 1.121 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.7112, allocations: 1.014 MB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.7113, allocations: 4 kB / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.701e-05/0.7114, allocations: 11.88 kB / 1.222 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.883e-05/0.7115, allocations: 19.73 kB / 1.222 GB, free: 60 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.7118, allocations: 91.89 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.712, allocations: 123.6 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.7122, allocations: 57.08 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.721e-05/0.7122, allocations: 47.84 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.978e-05/0.7123, allocations: 55.75 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.7124, allocations: 15.91 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.7125, allocations: 95.84 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.7126, allocations: 39.84 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.357e-05/0.7126, allocations: 59.61 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.7129, allocations: 222.8 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.7129, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.092e-06/0.7129, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.713, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 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.0008306/0.7138, allocations: 0.4945 MB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.7138, allocations: 8.031 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.192e-05/0.7139, allocations: 50.69 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.7139, allocations: 20.78 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.7141, allocations: 208.1 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.7142, allocations: 8.359 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.7142, allocations: 8.375 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.7147, allocations: 199.3 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.7148, allocations: 7.938 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.7148, allocations: 4 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.7148, allocations: 0 / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007912/0.7156, allocations: 227.7 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000929/0.7165, allocations: 0.5314 MB / 1.225 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004658/0.717, allocations: 170.4 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.7175, allocations: 160.8 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.7175, allocations: 4 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.7176, allocations: 30.56 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.7176, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001447/0.719, allocations: 480.7 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.7191, allocations: 55.34 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.7192, allocations: 156.6 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.7192, allocations: 33.7 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.7193, allocations: 108.6 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.7194, allocations: 71.45 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.7194, allocations: 29.7 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.7196, allocations: 330.8 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.72, allocations: 132.1 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.7204, allocations: 139.8 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/0.7213, allocations: 293.9 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7213, allocations: 0 / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009073/0.7222, allocations: 339 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.7222, allocations: 8 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.7223, allocations: 0 / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.7223, allocations: 0 / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.7225, allocations: 47.89 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.7225, allocations: 0 / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.7227, allocations: 35.84 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.7227, allocations: 8 kB / 1.227 GB, free: 10.71 MB / 0.9512 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.0001553/0.7229, allocations: 133.8 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.723, allocations: 15.91 kB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009927/0.7239, allocations: 365.9 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.724, allocations: 7.938 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.724, allocations: 0 / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.724, allocations: 3.984 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.7243, allocations: 265.5 kB / 1.228 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.7243, allocations: 0 / 1.228 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.7245, allocations: 35.95 kB / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7245, allocations: 0 / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.7245, allocations: 0 / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.7246, allocations: 11.92 kB / 1.228 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7246, allocations: 4 kB / 1.228 GB, free: 9.82 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009695/0.7255, allocations: 443.1 kB / 1.228 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.7256, allocations: 92.95 kB / 1.228 GB, free: 9.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.7256, allocations: 4 kB / 1.228 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.7258, allocations: 31.89 kB / 1.228 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.7259, allocations: 11.98 kB / 1.228 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.7259, allocations: 4 kB / 1.228 GB, free: 9.211 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.751e-05/0.726, allocations: 122.1 kB / 1.229 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.726, allocations: 0 / 1.229 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002855/0.7263, allocations: 39.89 kB / 1.229 GB, free: 9.055 MB / 0.9512 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.001413/0.7277, allocations: 0.9998 MB / 1.23 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009804/0.7287, allocations: 382.9 kB / 1.23 GB, free: 7.648 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7288, allocations: 3.938 kB / 1.23 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0005154/0.7293, allocations: 239.3 kB / 1.23 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.7296, allocations: 29.58 kB / 1.23 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/0.7333, allocations: 2.332 MB / 1.232 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.7337, allocations: 0.7275 MB / 1.233 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.131e-05/0.7338, allocations: 15.98 kB / 1.233 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.97e-05/0.7338, allocations: 47.42 kB / 1.233 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.7339, allocations: 0 / 1.233 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.7585, allocations: 3.946 MB / 1.237 GB, free: 288 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/8.364, allocations: 16.53 kB / 1.237 GB, free: 272 kB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches