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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.009732/0.009732, allocations: 102.8 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.001699/0.001699, allocations: 194.4 kB / 16.67 MB, free: 5.973 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.549/1.549, 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 9.1.2-maint.9.1.x/package.mo): time 2.355/2.355, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 63.91 kB / 0.9509 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174/1.176, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002073/1.178, allocations: 0.8273 MB / 1.089 GB, free: 4.984 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001273/1.179, allocations: 1.003 MB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.035e-05/1.18, allocations: 4.906 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001138/1.18, allocations: 15.08 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.981e-05/1.18, allocations: 18.38 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/1.18, allocations: 89.03 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001728/1.18, allocations: 121.8 kB / 1.09 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/1.181, allocations: 49.45 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.004e-05/1.181, allocations: 50.75 kB / 1.09 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.141e-05/1.181, allocations: 59.02 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/1.181, allocations: 9.375 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/1.181, allocations: 94.44 kB / 1.09 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/1.181, allocations: 41.22 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/1.181, allocations: 59.5 kB / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003073/1.181, allocations: 189.9 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/1.181, allocations: 0 / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.344e-06/1.181, allocations: 6.016 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.462e-06/1.181, allocations: 0 / 1.091 GB, free: 3.887 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.0008026/1.182, allocations: 475.6 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/1.182, allocations: 9.375 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/1.182, allocations: 19.22 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/1.183, allocations: 209.6 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/1.183, allocations: 3.328 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/1.183, allocations: 9.812 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/1.183, allocations: 188.6 kB / 1.091 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/1.183, allocations: 4.125 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/1.183, allocations: 8.812 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.386e-05/1.183, allocations: 12.83 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007732/1.184, allocations: 203.7 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/1.185, allocations: 455.6 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/1.186, allocations: 146.8 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/1.186, allocations: 128.7 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/1.186, allocations: 1.625 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/1.186, allocations: 31.95 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/1.186, allocations: 0 / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.001444/1.187, allocations: 392.2 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/1.188, allocations: 52.19 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/1.188, allocations: 160.9 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/1.188, allocations: 26.52 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/1.188, allocations: 110.5 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/1.188, allocations: 49.41 kB / 1.093 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/1.188, allocations: 22.62 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.593e-05/1.188, allocations: 327 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/1.188, allocations: 111 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/1.189, allocations: 116.8 kB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000846/1.19, allocations: 242.2 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/1.19, allocations: 0 / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009371/1.191, allocations: 277.1 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/1.191, allocations: 5.25 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/1.191, allocations: 0.625 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/1.191, allocations: 0.6875 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/1.191, allocations: 42.38 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/1.191, allocations: 1.188 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/1.191, allocations: 40.47 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/1.191, allocations: 2.906 kB / 1.094 GB, free: 1.664 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.0001135/1.191, allocations: 126.6 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/1.192, allocations: 16.19 kB / 1.094 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.524e-05/1.192, allocations: 17.72 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.489e-05/1.192, allocations: 13.38 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.192, allocations: 0 / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/1.192, allocations: 5.344 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002953/1.192, allocations: 225.9 kB / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/1.192, allocations: 0 / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/1.192, allocations: 34.64 kB / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/1.192, allocations: 0.8125 kB / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/1.192, allocations: 5.125 kB / 1.095 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/1.192, allocations: 0.6094 kB / 1.095 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.192, allocations: 1 kB / 1.095 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009081/1.193, allocations: 391 kB / 1.095 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/1.193, allocations: 85.31 kB / 1.095 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/1.193, allocations: 5.812 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/1.193, allocations: 26.78 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.639e-05/1.193, allocations: 17.44 kB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/1.194, allocations: 6.453 kB / 1.095 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.385e-05/1.194, allocations: 112.9 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.194, allocations: 0 / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003486/1.194, allocations: 41.73 kB / 1.095 GB, free: 0.8906 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.0002455/1.194, allocations: 112.6 kB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000944/1.195, allocations: 257.7 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/1.195, allocations: 0 / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000451/1.196, allocations: 140 kB / 1.096 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/1.196, allocations: 31.27 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007978/1.197, allocations: 317.9 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/1.197, allocations: 0.7316 MB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.982e-05/1.197, allocations: 14.94 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.994e-05/1.197, allocations: 13.81 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of SimCode: time 5.41e-07/1.197, allocations: 0 / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.006919/1.204, allocations: 1.893 MB / 1.099 GB, free: 15.66 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/jenkins/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