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.001971/0.001971, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002345/0.002345, allocations: 207.8 kB / 22.99 MB, free: 4.957 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.455/3.455, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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.002089/0.002089, allocations: 71.14 kB / 1.155 GB, free: 25.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3946, allocations: 176.1 MB / 1.327 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002023/0.3966, allocations: 0.6973 MB / 1.328 GB, free: 264 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00195/0.3985, allocations: 1.28 MB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.8e-05/0.3986, allocations: 0 / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.375e-05/0.3986, allocations: 7.938 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.3987, allocations: 23.78 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009193/0.3997, allocations: 304 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.4001, allocations: 259.5 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.4002, allocations: 16.17 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.4003, allocations: 103.8 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.4005, allocations: 95.69 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.989e-05/0.4006, allocations: 24 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.895e-05/0.4007, allocations: 39.97 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.509e-05/0.4007, allocations: 15.92 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.4008, allocations: 75.81 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003697/0.4012, allocations: 223.3 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4012, allocations: 4 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4012, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.4012, allocations: 0 / 1.33 GB, free: 13.8 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.0007469/0.402, allocations: 424.8 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.402, allocations: 8.031 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.4021, allocations: 12.94 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.4022, allocations: 118.4 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.4023, allocations: 8.375 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.4023, allocations: 16.38 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.4025, allocations: 62.16 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.4025, allocations: 7.938 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.4025, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4025, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.574e-05/0.4026, allocations: 19.98 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.4031, allocations: 320.3 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.071e-05/0.4032, allocations: 38.44 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.471e-05/0.4033, allocations: 24.86 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.4033, allocations: 0 / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.4035, allocations: 95.39 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.4035, allocations: 7.938 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003728/0.4039, allocations: 145.5 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.404, allocations: 59.34 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.4041, allocations: 125.8 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.4041, allocations: 37.7 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.4043, allocations: 108.1 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.4043, allocations: 19.86 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.4044, allocations: 69.61 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001842/0.4046, allocations: 322.8 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.4049, allocations: 173 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.4052, allocations: 231 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.4055, allocations: 238.9 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4055, allocations: 0 / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007059/0.4062, allocations: 471.6 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.785e-05/0.4063, allocations: 97.09 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.4063, allocations: 4 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.4063, allocations: 0 / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.854e-05/0.4063, allocations: 8.125 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.4064, allocations: 11.98 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.4068, allocations: 79.8 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.4069, allocations: 19.98 kB / 1.333 GB, free: 10.15 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.0001349/0.407, allocations: 126.3 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.407, allocations: 11.95 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.4071, allocations: 12.38 kB / 1.334 GB, free: 9.988 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4071, allocations: 3.984 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.4071, allocations: 0 / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.4071, allocations: 0 / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.4073, allocations: 137.2 kB / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4073, allocations: 0 / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.274e-05/0.4073, allocations: 3.938 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4073, allocations: 0 / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.4073, allocations: 4 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4073, allocations: 0 / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4073, allocations: 4 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.4075, allocations: 153.2 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.532e-05/0.4075, allocations: 7.891 kB / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.4076, allocations: 4 kB / 1.334 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.258e-05/0.4076, allocations: 12 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.4076, allocations: 7.984 kB / 1.334 GB, free: 9.609 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.4077, allocations: 7.984 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.462e-05/0.4077, allocations: 101.1 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4077, allocations: 0 / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002627/0.408, allocations: 40 kB / 1.334 GB, free: 9.465 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.0001668/0.4082, allocations: 111.2 kB / 1.334 GB, free: 9.348 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006284/0.4088, allocations: 411.1 kB / 1.334 GB, free: 8.891 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4088, allocations: 0 / 1.334 GB, free: 8.891 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.041e-05/0.4089, allocations: 35.92 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.4092, allocations: 34.22 kB / 1.335 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005014/0.4097, allocations: 195 kB / 1.335 GB, free: 8.605 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001018/0.4098, allocations: 83.83 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.074e-05/0.4098, allocations: 4.438 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.4098, allocations: 15.44 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.4098, allocations: 0 / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of Templates: time 0.007081/0.4169, allocations: 3.007 MB / 1.338 GB, free: 5.543 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 -s cvode -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/jenkins1/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.620653085992672]