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.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.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.001209/0.001209, 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.001532/0.001532, allocations: 193.4 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.988/2.988, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002415/0.002415, allocations: 72.34 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3792, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002924/0.3821, allocations: 0.8491 MB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.3835, allocations: 1.008 MB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.134e-05/0.3836, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.3838, allocations: 15.81 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.36e-05/0.3839, allocations: 23.78 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.3843, allocations: 87.83 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.3845, allocations: 123.6 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.3846, allocations: 49.08 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.3848, allocations: 59.83 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.562e-05/0.3848, allocations: 55.77 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.3849, allocations: 8 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.385, allocations: 71.89 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.3851, allocations: 39.84 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.3851, allocations: 67.53 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.3854, allocations: 203.6 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3854, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3854, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.3854, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 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.0008211/0.3863, allocations: 488.2 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3863, allocations: 12.03 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.3864, allocations: 50.73 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.3864, allocations: 16.75 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.3866, allocations: 208 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.3867, allocations: 8.375 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.3867, allocations: 12.38 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.3872, allocations: 205.9 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3873, allocations: 3.938 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.3873, allocations: 4 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3873, allocations: 4 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000734/0.388, allocations: 219.8 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009176/0.389, allocations: 0.5198 MB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004497/0.3894, allocations: 170.4 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004629/0.3899, allocations: 160.7 kB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.546e-05/0.39, allocations: 8 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.39, allocations: 30.56 kB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 2.835e-06/0.39, allocations: 0 / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001445/0.3914, allocations: 483 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.3915, allocations: 55.34 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.3916, allocations: 152.6 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.3917, allocations: 25.7 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.3917, allocations: 116.5 kB / 1.069 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.3918, allocations: 67.08 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.3918, allocations: 33.7 kB / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.392, allocations: 326.8 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.3924, allocations: 135.9 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.3928, allocations: 127.9 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007806/0.3936, allocations: 306.3 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3936, allocations: 0 / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008812/0.3945, allocations: 329.2 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.3945, allocations: 4 kB / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.3945, allocations: 4 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3945, allocations: 0 / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.3948, allocations: 35.89 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.3948, allocations: 11.98 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.395, allocations: 35.81 kB / 1.07 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.395, allocations: 7.984 kB / 1.07 GB, free: 7.309 MB / 0.8262 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.0001355/0.3952, allocations: 137.8 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.3952, allocations: 11.81 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000952/0.3962, allocations: 370.4 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3962, allocations: 7.938 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3962, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3962, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.3965, allocations: 281.7 kB / 1.071 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3965, allocations: 0 / 1.071 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.3967, allocations: 35.95 kB / 1.071 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.3968, allocations: 4 kB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3968, allocations: 0 / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.3968, allocations: 7.938 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.3968, allocations: 0 / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009211/0.3977, allocations: 435 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.3978, allocations: 96.86 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3978, allocations: 0 / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.398, allocations: 35.89 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3981, allocations: 19.92 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3981, allocations: 11.92 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.202e-05/0.3982, allocations: 105.9 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3982, allocations: 0 / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003107/0.3985, allocations: 43.91 kB / 1.072 GB, free: 5.641 MB / 0.8262 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.001326/0.3999, allocations: 0.9884 MB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001061/0.4009, allocations: 399.1 kB / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4009, allocations: 0 / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004683/0.4014, allocations: 243.2 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.4018, allocations: 30.17 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.4055, allocations: 2.324 MB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.4058, allocations: 0.7314 MB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.722e-05/0.4059, allocations: 11.98 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.305e-05/0.406, allocations: 43.42 kB / 1.077 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of SimCode: time 5.51e-07/0.406, allocations: 0 / 1.077 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.4285, allocations: 3.897 MB / 1.08 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.082, allocations: 4.594 kB / 1.08 GB, free: 12.91 MB / 0.8419 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