Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 212.2 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.354/3.354, allocations: 0.4892 GB / 0.7943 GB, free: 35.57 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 63.75 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3876, allocations: 176.1 MB / 1.326 GB, free: 1.867 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002017/0.3896, allocations: 0.6868 MB / 1.326 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.3914, allocations: 1.28 MB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.873e-05/0.3915, allocations: 0 / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.254e-05/0.3915, allocations: 3.938 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.108e-05/0.3916, allocations: 19.8 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.3924, allocations: 313.5 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.3927, allocations: 255.5 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.523e-05/0.3928, allocations: 16.16 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.393, allocations: 103.9 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3931, allocations: 75.75 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.3932, allocations: 24 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.191e-05/0.3933, allocations: 39.92 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.912e-05/0.3933, allocations: 19.92 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3934, allocations: 79.81 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.3937, allocations: 227.3 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3937, allocations: 0 / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3937, allocations: 0 / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3937, allocations: 0 / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006145/0.3943, allocations: 416.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.3944, allocations: 8.031 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.3945, allocations: 12.94 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.3946, allocations: 114.4 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.3946, allocations: 20.34 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.278e-05/0.3946, allocations: 16.38 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.3948, allocations: 62.17 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3948, allocations: 3.938 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.3948, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3948, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.507e-05/0.3949, allocations: 23.98 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/0.3954, allocations: 316.3 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.019e-05/0.3955, allocations: 34.45 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.208e-05/0.3956, allocations: 28.86 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.3956, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.3958, allocations: 107.3 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.3958, allocations: 3.938 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003358/0.3961, allocations: 137.5 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.3962, allocations: 59.34 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3963, allocations: 132.8 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.3964, allocations: 33.7 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.006e-05/0.3964, allocations: 104.1 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.3965, allocations: 19.86 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.3966, allocations: 65.67 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3968, allocations: 322.8 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.397, allocations: 181 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.3973, allocations: 223.1 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.3976, allocations: 242.9 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3976, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007095/0.3984, allocations: 475.6 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.412e-05/0.3984, allocations: 97.08 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3985, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3985, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.217e-05/0.3985, allocations: 4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3985, allocations: 12 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004835/0.399, allocations: 87.95 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/0.399, allocations: 15.98 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.000142/0.3992, allocations: 134.3 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.98e-05/0.3992, allocations: 11.95 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.3992, allocations: 12.38 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3992, allocations: 0 / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3992, allocations: 384 / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3992, allocations: 0 / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.3994, allocations: 133.2 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3994, allocations: 0 / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/0.3994, allocations: 7.875 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.3994, allocations: 7.984 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3994, allocations: 4 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3994, allocations: 0 / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3994, allocations: 0 / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.3996, allocations: 140.9 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.3996, allocations: 19.88 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.3997, allocations: 7.938 kB / 1.332 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.233e-05/0.3997, allocations: 0 / 1.332 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.3997, allocations: 15.98 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.3997, allocations: 4 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.804e-05/0.3998, allocations: 95.27 kB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3998, allocations: 0 / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002696/0.4001, allocations: 43.98 kB / 1.332 GB, free: 10.4 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001797/0.4002, allocations: 103.2 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005566/0.4008, allocations: 411.1 kB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4008, allocations: 384 / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.735e-05/0.4009, allocations: 43.91 kB / 1.333 GB, free: 9.793 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.4011, allocations: 24.2 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004108/0.4015, allocations: 195 kB / 1.333 GB, free: 9.551 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.059e-05/0.4016, allocations: 83.83 kB / 1.333 GB, free: 9.445 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.4017, allocations: 12.42 kB / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.4017, allocations: 11.44 kB / 1.333 GB, free: 9.422 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.4017, allocations: 0 / 1.333 GB, free: 9.422 MB / 1.029 GB Notification: Performance of Templates: time 0.006642/0.4083, allocations: 2.989 MB / 1.336 GB, free: 6.504 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.757598457857966]