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.001081/0.001081, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 181 kB / 16.92 MB, free: 6.918 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.439/1.439, allocations: 223.3 MB / 241 MB, free: 5.227 MB / 190.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.433/2.433, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003841, allocations: 19.98 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7558/0.7562, allocations: 142.4 MB / 0.9557 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.0009434/0.7572, allocations: 0.549 MB / 0.9563 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.7584, allocations: 1.023 MB / 0.9573 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.595e-05/0.7584, allocations: 1.188 kB / 0.9573 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.938e-05/0.7585, allocations: 7.922 kB / 0.9573 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.343e-05/0.7586, allocations: 11.09 kB / 0.9573 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.7589, allocations: 74.31 kB / 0.9574 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.759, allocations: 107.5 kB / 0.9575 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.7592, allocations: 50.42 kB / 0.9575 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.169e-05/0.7593, allocations: 41.88 kB / 0.9575 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.315e-05/0.7594, allocations: 41.14 kB / 0.9576 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.7594, allocations: 4.719 kB / 0.9576 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.7595, allocations: 57.67 kB / 0.9576 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.7596, allocations: 40.14 kB / 0.9577 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.55e-05/0.7596, allocations: 70.81 kB / 0.9577 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.7598, allocations: 131.4 kB / 0.9579 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.7598, allocations: 0 / 0.9579 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.7598, allocations: 0 / 0.9579 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.7598, allocations: 5.094 kB / 0.9579 GB, free: 6.316 MB / 0.7169 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.0007262/0.7605, allocations: 487.7 kB / 0.9583 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.7606, allocations: 13.92 kB / 0.9584 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.7606, allocations: 14.56 kB / 0.9584 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.7608, allocations: 207.5 kB / 0.9586 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.7608, allocations: 8.031 kB / 0.9586 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.7608, allocations: 4.375 kB / 0.9586 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/0.7614, allocations: 213.5 kB / 0.9588 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.7614, allocations: 1.625 kB / 0.9588 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.7614, allocations: 3.938 kB / 0.9588 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.7615, allocations: 10.03 kB / 0.9588 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007351/0.7622, allocations: 259.4 kB / 0.959 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000851/0.7631, allocations: 482.9 kB / 0.9595 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.7635, allocations: 166.6 kB / 0.9597 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004071/0.7639, allocations: 160.4 kB / 0.9598 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.764, allocations: 4.938 kB / 0.9598 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.447e-05/0.764, allocations: 35.25 kB / 0.9599 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.764, allocations: 0.8438 kB / 0.9599 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001357/0.7653, allocations: 479.1 kB / 0.9603 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.7654, allocations: 51.41 kB / 0.9604 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.7655, allocations: 152.9 kB / 0.9605 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.7655, allocations: 27.08 kB / 0.9605 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.7656, allocations: 113.8 kB / 0.9606 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.7656, allocations: 48.83 kB / 0.9607 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.7657, allocations: 17.84 kB / 0.9607 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.338e-05/0.7657, allocations: 321.6 kB / 0.961 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004086/0.7661, allocations: 139.8 kB / 0.9611 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.7665, allocations: 140.5 kB / 0.9613 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.7673, allocations: 309.9 kB / 0.9616 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.7674, allocations: 0 / 0.9616 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008429/0.7682, allocations: 324 kB / 0.9619 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.7682, allocations: 10.09 kB / 0.9619 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.7682, allocations: 4 kB / 0.9619 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.7683, allocations: 0 / 0.9619 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.7685, allocations: 50.8 kB / 0.9619 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.7685, allocations: 5.188 kB / 0.962 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.7687, allocations: 56.77 kB / 0.962 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.7688, allocations: 2.562 kB / 0.962 GB, free: 3.488 MB / 0.7169 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.379e-05/0.7689, allocations: 129.9 kB / 0.9621 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.7689, allocations: 13.23 kB / 0.9621 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.7689, allocations: 15.58 kB / 0.9622 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.769, allocations: 6.719 kB / 0.9622 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.769, allocations: 0.9375 kB / 0.9622 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.769, allocations: 3.938 kB / 0.9622 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.7692, allocations: 229.9 kB / 0.9624 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7692, allocations: 1.125 kB / 0.9624 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.7695, allocations: 49.42 kB / 0.9624 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.7695, allocations: 0.9688 kB / 0.9624 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.7695, allocations: 5 kB / 0.9624 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7695, allocations: 1.031 kB / 0.9624 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7695, allocations: 0 / 0.9624 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008577/0.7704, allocations: 437 kB / 0.9629 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.7704, allocations: 88.73 kB / 0.9629 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.7704, allocations: 5.016 kB / 0.963 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.7707, allocations: 39.91 kB / 0.963 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.7707, allocations: 20.91 kB / 0.963 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.7707, allocations: 1.375 kB / 0.963 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.491e-05/0.7708, allocations: 116.1 kB / 0.9631 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7708, allocations: 5.281 kB / 0.9631 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003003/0.7711, allocations: 43.86 kB / 0.9632 GB, free: 2.578 MB / 0.7169 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.0002189/0.7714, allocations: 115.1 kB / 0.9633 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008831/0.7722, allocations: 308.3 kB / 0.9636 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7723, allocations: 0 / 0.9636 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004349/0.7727, allocations: 165.1 kB / 0.9637 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.7731, allocations: 18.25 kB / 0.9637 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000608/0.7737, allocations: 416.1 kB / 0.9641 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.7739, allocations: 0.7191 MB / 0.9648 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.7739, allocations: 12.47 kB / 0.9649 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.7739, allocations: 0 / 0.9649 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of Templates: time 0.003699/0.7776, allocations: 1.87 MB / 0.9667 GB, free: 332 kB / 0.7169 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