Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.007946/0.007946, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.001722/0.001722, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.449/2.449, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 69.55 kB / 0.9505 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2517, allocations: 140.4 MB / 1.088 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002077/0.2538, allocations: 0.8268 MB / 1.088 GB, free: 1.098 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2553, allocations: 1.014 MB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.907e-05/0.2554, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.2555, allocations: 7.875 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.77e-05/0.2556, allocations: 23.8 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.2561, allocations: 91.75 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.2562, allocations: 115.7 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.2564, allocations: 53.39 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2566, allocations: 51.77 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.488e-05/0.2567, allocations: 67.73 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.2567, allocations: 8 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.2569, allocations: 87.92 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.889e-05/0.2569, allocations: 35.91 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.88e-05/0.257, allocations: 59.59 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.2573, allocations: 198.1 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2573, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.2573, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.2573, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 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.0009848/0.2583, allocations: 483.6 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.2584, allocations: 12.03 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.283e-05/0.2584, allocations: 42.69 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.908e-05/0.2585, allocations: 16.75 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.2588, allocations: 194.4 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.2588, allocations: 4.375 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.2588, allocations: 16.34 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006575/0.2595, allocations: 190 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2595, allocations: 3.938 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.2595, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.2596, allocations: 16 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007493/0.2603, allocations: 203.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.2614, allocations: 456.3 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006018/0.262, allocations: 134.5 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004065/0.2624, allocations: 132.8 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.2625, allocations: 7.984 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.2625, allocations: 34.55 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.2625, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.001385/0.2639, allocations: 397.2 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.264, allocations: 55.41 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.2641, allocations: 155.1 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.2641, allocations: 25.7 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.545e-05/0.2642, allocations: 108.4 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.2643, allocations: 47.2 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.2643, allocations: 25.7 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.2645, allocations: 326.8 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004864/0.265, allocations: 111.9 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.2654, allocations: 113.9 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007247/0.2661, allocations: 248.6 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2661, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009314/0.2671, allocations: 280.5 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.2671, allocations: 4 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2671, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.2671, allocations: 4 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.2674, allocations: 35.95 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.2674, allocations: 3.938 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.2676, allocations: 35.95 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.2676, allocations: 4 kB / 1.094 GB, free: 11.2 MB / 0.8575 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.0001315/0.2678, allocations: 125.8 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.2678, allocations: 19.75 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.2678, allocations: 16.83 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/0.2679, allocations: 8 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.2679, allocations: 3.938 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.2679, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.2683, allocations: 229.5 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.2683, allocations: 0 / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.2685, allocations: 39.95 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2685, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2685, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2685, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.2685, allocations: 7.922 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.2696, allocations: 375.2 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.2696, allocations: 92.94 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.2696, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.2699, allocations: 27.95 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.2699, allocations: 23.86 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.27, allocations: 7.938 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.199e-05/0.27, allocations: 108.7 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.27, allocations: 0 / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003041/0.2704, allocations: 51.88 kB / 1.095 GB, free: 9.996 MB / 0.8575 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.001224/0.2716, allocations: 0.9283 MB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008433/0.2724, allocations: 255.7 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2725, allocations: 0 / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.2729, allocations: 135.9 kB / 1.096 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.2733, allocations: 23.91 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.2769, allocations: 2.167 MB / 1.098 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.2772, allocations: 0.7256 MB / 1.099 GB, free: 5.645 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.615e-05/0.2774, allocations: 19.97 kB / 1.099 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.983e-05/0.2774, allocations: 39.42 kB / 1.099 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2774, allocations: 0 / 1.099 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.2983, allocations: 3.563 MB / 1.103 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.95, allocations: 7.609 kB / 1.103 GB, free: 2.125 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches