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.0143/0.01431, allocations: 100.9 kB / 15.73 MB, free: 6 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.002848/0.002848, allocations: 189.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.48/2.48, allocations: 222.9 MB / 240.4 MB, free: 4.324 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 4.245/4.245, allocations: 437 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003097/0.003097, allocations: 63.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4917/0.4949, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.00317/0.4981, allocations: 0.8365 MB / 1.167 GB, free: 6.484 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002228/0.5004, allocations: 1.006 MB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.192e-05/0.5005, allocations: 3.938 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.5006, allocations: 11.86 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.622e-05/0.5008, allocations: 27.8 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006162/0.5015, allocations: 87.77 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.5017, allocations: 119.7 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.502, allocations: 49.38 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.5021, allocations: 47.84 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.5022, allocations: 59.75 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.5023, allocations: 12 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.5025, allocations: 91.91 kB / 1.169 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.065e-05/0.5026, allocations: 35.84 kB / 1.169 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.982e-05/0.5028, allocations: 63.55 kB / 1.169 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.5032, allocations: 191.5 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.5032, allocations: 0 / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5032, allocations: 0 / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.5032, allocations: 4 kB / 1.169 GB, free: 4.668 MB / 0.92 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.001299/0.5045, allocations: 486.6 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.5046, allocations: 8.031 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.896e-05/0.5047, allocations: 50.67 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.5048, allocations: 12.84 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.5051, allocations: 209.9 kB / 1.17 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5052, allocations: 8.375 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.5052, allocations: 4.375 kB / 1.17 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008176/0.506, allocations: 186 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.5061, allocations: 3.938 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.5061, allocations: 4 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-05/0.5062, allocations: 15.98 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.5074, allocations: 199.8 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.5089, allocations: 464.4 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006745/0.5096, allocations: 138.5 kB / 1.171 GB, free: 2.754 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006346/0.5102, allocations: 128.8 kB / 1.171 GB, free: 2.625 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.5103, allocations: 0 / 1.171 GB, free: 2.625 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.5103, allocations: 34.56 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 2.225e-06/0.5104, allocations: 0 / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.002382/0.5128, allocations: 397.3 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.5128, allocations: 51.41 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.5131, allocations: 150.9 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.5132, allocations: 29.7 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.5133, allocations: 112.4 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.366e-05/0.5134, allocations: 55.59 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.5135, allocations: 25.7 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002449/0.5138, allocations: 322.8 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007112/0.5145, allocations: 115.9 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007465/0.5153, allocations: 109.7 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.5167, allocations: 240.6 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.5168, allocations: 4 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001634/0.5184, allocations: 276.3 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.5185, allocations: 4 kB / 1.172 GB, free: 0.668 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.5185, allocations: 7.984 kB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.5185, allocations: 4 kB / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.519, allocations: 35.95 kB / 1.173 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.519, allocations: 3.938 kB / 1.173 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.5194, allocations: 35.89 kB / 1.173 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.5194, allocations: 3.938 kB / 1.173 GB, free: 0.5781 MB / 0.92 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 0.0002103/0.5196, allocations: 141.8 kB / 1.173 GB, free: 440 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.5197, allocations: 15.84 kB / 1.173 GB, free: 424 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.549e-05/0.5198, allocations: 8.844 kB / 1.173 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.012e-05/0.5199, allocations: 15.97 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.5199, allocations: 3.938 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.5199, allocations: 0 / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005365/0.5205, allocations: 225.5 kB / 1.173 GB, free: 120 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5205, allocations: 4 kB / 1.173 GB, free: 116 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.5209, allocations: 35.95 kB / 1.173 GB, free: 80 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5209, allocations: 0 / 1.173 GB, free: 80 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.5209, allocations: 8 kB / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.5209, allocations: 0 / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.521, allocations: 3.938 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.5227, allocations: 375.2 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.135e-05/0.5228, allocations: 89.02 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.375e-05/0.5228, allocations: 0 / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.5232, allocations: 35.94 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.5233, allocations: 19.86 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.5234, allocations: 8 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001473/0.5235, allocations: 112.7 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.71e-07/0.5236, allocations: 0 / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005455/0.5241, allocations: 35.94 kB / 1.174 GB, free: 15.37 MB / 0.9356 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.00238/0.5265, allocations: 0.9231 MB / 1.175 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001652/0.5282, allocations: 267.6 kB / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5282, allocations: 0 / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007995/0.529, allocations: 131.9 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.5297, allocations: 23.94 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006344/0.536, allocations: 2.173 MB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.5366, allocations: 0.726 MB / 1.178 GB, free: 11 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001631/0.5368, allocations: 15.98 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.5369, allocations: 43.36 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of SimCode: time 5.11e-07/0.537, allocations: 0 / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03816/0.5751, allocations: 3.557 MB / 1.181 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.08, allocations: 8.859 kB / 1.181 GB, free: 7.488 MB / 0.9356 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