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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001281/0.001281, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001357/0.001357, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.28/1.28, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.34/2.34, allocations: 437 MB / 0.7099 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 71.84 kB / 0.8687 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.5586, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.00192/0.5605, allocations: 0.8913 MB / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.5617, allocations: 1.03 MB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/0.5618, allocations: 0 / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.174e-05/0.5619, allocations: 7.938 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.57e-05/0.562, allocations: 19.86 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.5622, allocations: 67.86 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.5624, allocations: 115.6 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.5625, allocations: 49.38 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.442e-05/0.5626, allocations: 43.83 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.65e-05/0.5627, allocations: 59.75 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.5627, allocations: 12 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.743e-05/0.5628, allocations: 55.91 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.787e-05/0.5629, allocations: 35.89 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.167e-05/0.5629, allocations: 55.59 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.5631, allocations: 177.7 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5631, allocations: 4 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.81e-07/0.5631, allocations: 0 / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.5631, allocations: 0 / 1.019 GB, free: 168 kB / 0.7637 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.000756/0.5639, allocations: 482.8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.5639, allocations: 8.031 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.163e-05/0.564, allocations: 42.75 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.564, allocations: 16.75 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.5642, allocations: 211.8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-06/0.5642, allocations: 384 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.5643, allocations: 8.375 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.5647, allocations: 186 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.5648, allocations: 7.922 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.5648, allocations: 8 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.5648, allocations: 8 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006637/0.5655, allocations: 219.6 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008384/0.5663, allocations: 456.4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.5667, allocations: 142.4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.5671, allocations: 124.8 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.5671, allocations: 3.938 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.5672, allocations: 38.55 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.5672, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001132/0.5683, allocations: 394.2 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.5683, allocations: 55.41 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.5685, allocations: 153.6 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.5685, allocations: 25.78 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.381e-05/0.5685, allocations: 112.4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.5686, allocations: 51.27 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.803e-05/0.5687, allocations: 21.72 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.5688, allocations: 322.8 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.5691, allocations: 107.9 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/0.5694, allocations: 119.8 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006399/0.5701, allocations: 245.9 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.5701, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007069/0.5708, allocations: 278 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.5708, allocations: 8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.5708, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.5708, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.5711, allocations: 35.95 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.5711, allocations: 7.938 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.5712, allocations: 39.8 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.5713, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 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 9.369e-05/0.5714, allocations: 127.9 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.5714, allocations: 11.81 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.5714, allocations: 16.83 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.5715, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5715, allocations: 7.938 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.5715, allocations: 4 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.5717, allocations: 221.6 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5717, allocations: 0 / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.5719, allocations: 35.89 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.5719, allocations: 7.938 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.572, allocations: 0 / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.572, allocations: 0 / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.572, allocations: 3.938 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.5728, allocations: 384.2 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.5728, allocations: 89.02 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.5728, allocations: 3.984 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.573, allocations: 27.97 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.5731, allocations: 19.91 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.5731, allocations: 4 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.487e-05/0.5732, allocations: 115.2 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5732, allocations: 0 / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002675/0.5735, allocations: 47.84 kB / 1.024 GB, free: 10.87 MB / 0.7794 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.001121/0.5746, allocations: 0.9295 MB / 1.025 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007443/0.5754, allocations: 247.8 kB / 1.025 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5754, allocations: 0 / 1.025 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.5758, allocations: 135.8 kB / 1.025 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.5761, allocations: 34.36 kB / 1.025 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.5791, allocations: 2.198 MB / 1.028 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.5794, allocations: 0.7238 MB / 1.028 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.419e-05/0.5795, allocations: 15.97 kB / 1.028 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.694e-05/0.5795, allocations: 35.42 kB / 1.028 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.5795, allocations: 0 / 1.028 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.5919, allocations: 3.07 MB / 1.031 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.5921, allocations: 199.4 kB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.362, allocations: 0 / 1.032 GB, free: 3.215 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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