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.007811/0.007811, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.001552/0.001552, allocations: 196.4 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.534/2.534, allocations: 437 MB / 0.7105 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.84 kB / 1.018 GB, free: 9.801 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.888/0.8894, allocations: 151.6 MB / 1.166 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002423/0.8919, allocations: 0.8287 MB / 1.167 GB, free: 2.902 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001623/0.8935, allocations: 1.021 MB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.8937, allocations: 0 / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.8938, allocations: 11.88 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.57e-05/0.894, allocations: 19.78 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.8945, allocations: 95.77 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.8947, allocations: 119.7 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.8949, allocations: 49.39 kB / 1.168 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.895, allocations: 51.77 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.554e-05/0.8952, allocations: 63.75 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.8952, allocations: 8 kB / 1.168 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.8954, allocations: 83.92 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.587e-05/0.8955, allocations: 35.89 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.922e-05/0.8955, allocations: 63.61 kB / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.8959, allocations: 198.8 kB / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.8959, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.084e-06/0.8959, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.8959, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 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.001035/0.897, allocations: 482.6 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.897, allocations: 12.92 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.699e-05/0.8971, allocations: 38.75 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.8972, allocations: 20.84 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.8975, allocations: 206.8 kB / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.8976, allocations: 4.375 kB / 1.17 GB, free: 244 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.8976, allocations: 8.375 kB / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000612/0.8982, allocations: 182.1 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.8982, allocations: 7.875 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.8983, allocations: 4 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.406e-05/0.8983, allocations: 11.98 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.899, allocations: 203.9 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009642/0.9, allocations: 460.3 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004061/0.9004, allocations: 134.5 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.9008, allocations: 128.8 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.9009, allocations: 0 / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.9011, allocations: 34.56 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.9011, allocations: 0 / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.001356/0.9024, allocations: 399.7 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.9026, allocations: 55.41 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.9027, allocations: 158 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.9028, allocations: 33.7 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.903, allocations: 116.3 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.903, allocations: 47.59 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.9031, allocations: 21.72 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002216/0.9033, allocations: 326.8 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.9037, allocations: 107.9 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.904, allocations: 111.9 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007252/0.9048, allocations: 248.6 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.9048, allocations: 0 / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007865/0.9056, allocations: 284.1 kB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.9056, allocations: 4 kB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.9056, allocations: 0 / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.9056, allocations: 0 / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.9059, allocations: 39.95 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.9059, allocations: 3.938 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.9061, allocations: 35.89 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.9061, allocations: 4 kB / 1.173 GB, free: 13 MB / 0.9044 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.0002344/0.9064, allocations: 124 kB / 1.173 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.939e-05/0.9064, allocations: 19.91 kB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.9065, allocations: 20.81 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.9065, allocations: 8 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.9065, allocations: 3.938 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.9065, allocations: 0 / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003062/0.9068, allocations: 229.5 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.9068, allocations: 0 / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.907, allocations: 39.95 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.9071, allocations: 0 / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.9071, allocations: 4 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.9071, allocations: 0 / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9071, allocations: 3.938 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.9081, allocations: 383.2 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.9082, allocations: 89.02 kB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.9083, allocations: 7.984 kB / 1.173 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.9084, allocations: 23.97 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.306e-05/0.9085, allocations: 19.91 kB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.9085, allocations: 7.938 kB / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.842e-05/0.9086, allocations: 113.9 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9086, allocations: 3.938 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003086/0.909, allocations: 39.92 kB / 1.174 GB, free: 11.79 MB / 0.9044 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.001462/0.9104, allocations: 0.9348 MB / 1.175 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009428/0.9114, allocations: 259.7 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.9114, allocations: 0 / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.9118, allocations: 131.9 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.9122, allocations: 19.92 kB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/0.9163, allocations: 2.182 MB / 1.177 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.9168, allocations: 0.7197 MB / 1.178 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.637e-05/0.9169, allocations: 19.97 kB / 1.178 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.9169, allocations: 39.42 kB / 1.178 GB, free: 7.359 MB / 0.9044 GB Notification: Performance of SimCode: time 3.81e-07/0.917, allocations: 0 / 1.178 GB, free: 7.359 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.9409, allocations: 3.556 MB / 1.181 GB, free: 3.902 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.885, allocations: 0 / 1.181 GB, free: 3.902 MB / 0.9044 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