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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 106 kB / 16.41 MB, free: 5.984 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.00164/0.001641, allocations: 184.4 kB / 17.34 MB, free: 5.613 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.309/2.309, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 63.91 kB / 0.9516 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9183/0.9199, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.001821/0.9218, allocations: 0.8378 MB / 1.089 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001124/0.9229, allocations: 1.003 MB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.455e-05/0.923, allocations: 1.156 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.9231, allocations: 14.58 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.577e-05/0.9232, allocations: 16.97 kB / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.9235, allocations: 91.94 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.9237, allocations: 118.8 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.9239, allocations: 49.08 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.694e-05/0.924, allocations: 54.89 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.503e-05/0.9241, allocations: 61.73 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.9241, allocations: 9.875 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.9243, allocations: 94.98 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.9243, allocations: 36.41 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.046e-05/0.9244, allocations: 53.23 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.9247, allocations: 200.8 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.9247, allocations: 5.062 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9247, allocations: 0 / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.9247, allocations: 0.6562 kB / 1.091 GB, free: 3.867 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.0007768/0.9255, allocations: 467.9 kB / 1.092 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.9255, allocations: 9.672 kB / 1.092 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.9256, allocations: 19.09 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.9258, allocations: 204.1 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.9258, allocations: 6.812 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.9258, allocations: 5.406 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.9264, allocations: 192.5 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.9264, allocations: 8.625 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.9264, allocations: 12.66 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.735e-05/0.9265, allocations: 12.28 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007681/0.9273, allocations: 199.9 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008638/0.9281, allocations: 451.9 kB / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.9286, allocations: 146.2 kB / 1.093 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/0.929, allocations: 129 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.929, allocations: 0.7812 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.929, allocations: 35.62 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.9291, allocations: 0 / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.001307/0.9304, allocations: 397.9 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.9304, allocations: 53.11 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.9305, allocations: 147.1 kB / 1.094 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.9306, allocations: 30.52 kB / 1.094 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.913e-05/0.9306, allocations: 115.1 kB / 1.094 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.9307, allocations: 45.69 kB / 1.094 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.9307, allocations: 26.47 kB / 1.094 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.974e-05/0.9308, allocations: 322.5 kB / 1.094 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.9312, allocations: 112.4 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.9316, allocations: 116 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007613/0.9323, allocations: 240.4 kB / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.9323, allocations: 0 / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008502/0.9332, allocations: 281.7 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.9332, allocations: 5.094 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.9332, allocations: 0.8125 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.9333, allocations: 0.7031 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.9335, allocations: 34.59 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.9335, allocations: 4.656 kB / 1.095 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.9337, allocations: 36.89 kB / 1.095 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.9337, allocations: 2.594 kB / 1.095 GB, free: 1.656 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 8.946e-05/0.9338, allocations: 127 kB / 1.095 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.9339, allocations: 12.22 kB / 1.095 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.9339, allocations: 12.56 kB / 1.095 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.934, allocations: 14.28 kB / 1.095 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.934, allocations: 8.766 kB / 1.095 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.934, allocations: 3.938 kB / 1.095 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.9342, allocations: 229.7 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.9342, allocations: 4.906 kB / 1.095 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.9344, allocations: 37.5 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.9345, allocations: 1.891 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.9345, allocations: 1.125 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9345, allocations: 0 / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9345, allocations: 5.812 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008421/0.9353, allocations: 385.4 kB / 1.096 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.9354, allocations: 85.56 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.9354, allocations: 1.484 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.9356, allocations: 31.58 kB / 1.096 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.038e-05/0.9357, allocations: 20.53 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.9357, allocations: 2.875 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.175e-05/0.9358, allocations: 110.1 kB / 1.096 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.51e-07/0.9358, allocations: 4 kB / 1.096 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003377/0.9361, allocations: 45.89 kB / 1.096 GB, free: 0.875 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.0002138/0.9363, allocations: 121.1 kB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009005/0.9373, allocations: 256.5 kB / 1.096 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.9373, allocations: 0.5625 kB / 1.096 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004318/0.9377, allocations: 132.7 kB / 1.097 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.938, allocations: 31.95 kB / 1.097 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006275/0.9387, allocations: 350.7 kB / 1.097 GB, free: 480 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.9389, allocations: 0.7197 MB / 1.098 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.243e-05/0.939, allocations: 13.77 kB / 1.098 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.939, allocations: 4 kB / 1.098 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Templates: time 0.004527/0.9435, allocations: 1.877 MB / 1.099 GB, free: 15.61 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat","/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