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.001703/0.001703, allocations: 84.67 kB / 19.76 MB, free: 2.023 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.002041/0.002041, allocations: 157.7 kB / 23.01 MB, free: 4.961 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.47/1.47, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.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 2.792/2.792, allocations: 377.9 MB / 0.6228 GB, free: 12.69 MB / 0.5919 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.002082/0.002082, allocations: 67.89 kB / 0.982 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.07/1.072, allocations: 176.1 MB / 1.154 GB, free: 33.31 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001672/1.074, allocations: 0.6832 MB / 1.155 GB, free: 32.89 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001422/1.075, allocations: 1.279 MB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.335e-05/1.075, allocations: 11.88 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.34e-05/1.075, allocations: 7.219 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.051e-05/1.075, allocations: 18.73 kB / 1.156 GB, free: 31.93 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007577/1.076, allocations: 311.8 kB / 1.156 GB, free: 31.78 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002536/1.076, allocations: 260.9 kB / 1.156 GB, free: 31.67 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/1.076, allocations: 16.66 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 9.515e-05/1.077, allocations: 104.4 kB / 1.157 GB, free: 31.62 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/1.077, allocations: 74.41 kB / 1.157 GB, free: 31.6 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/1.077, allocations: 22.31 kB / 1.157 GB, free: 31.6 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.781e-05/1.077, allocations: 33.97 kB / 1.157 GB, free: 31.6 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/1.077, allocations: 20.73 kB / 1.157 GB, free: 31.59 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.57e-05/1.077, allocations: 76.39 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000202/1.077, allocations: 217.4 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/1.077, allocations: 2.562 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.663e-06/1.077, allocations: 4 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.129e-05/1.077, allocations: 3.938 kB / 1.157 GB, free: 31.47 MB / 1.076 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.0004587/1.078, allocations: 422.3 kB / 1.157 GB, free: 31.08 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/1.078, allocations: 8.75 kB / 1.157 GB, free: 31.08 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.458e-05/1.078, allocations: 11.81 kB / 1.157 GB, free: 31.08 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.131e-05/1.078, allocations: 123.2 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/1.078, allocations: 6.375 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/1.078, allocations: 17.77 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/1.078, allocations: 54.19 kB / 1.158 GB, free: 30.91 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/1.078, allocations: 3.938 kB / 1.158 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/1.078, allocations: 3.047 kB / 1.158 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/1.078, allocations: 6.781 kB / 1.158 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.683e-05/1.078, allocations: 26.59 kB / 1.158 GB, free: 30.89 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004272/1.078, allocations: 314.5 kB / 1.158 GB, free: 30.64 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 6.685e-05/1.078, allocations: 37.94 kB / 1.158 GB, free: 30.61 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.994e-05/1.079, allocations: 13.89 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/1.079, allocations: 2.906 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/1.079, allocations: 111.8 kB / 1.158 GB, free: 30.52 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/1.079, allocations: 0 / 1.158 GB, free: 30.52 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0002787/1.079, allocations: 141.8 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/1.079, allocations: 62.19 kB / 1.158 GB, free: 30.39 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.671e-05/1.079, allocations: 131.2 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/1.079, allocations: 31.64 kB / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/1.079, allocations: 97.25 kB / 1.159 GB, free: 30.15 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/1.079, allocations: 28.22 kB / 1.159 GB, free: 30.13 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/1.079, allocations: 64.73 kB / 1.159 GB, free: 30.11 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.923e-05/1.079, allocations: 321 kB / 1.159 GB, free: 29.79 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/1.08, allocations: 179.2 kB / 1.159 GB, free: 29.66 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/1.08, allocations: 233.4 kB / 1.159 GB, free: 29.47 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/1.08, allocations: 245.5 kB / 1.16 GB, free: 29.26 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.08, allocations: 0 / 1.16 GB, free: 29.26 MB / 1.076 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005272/1.08, allocations: 472.8 kB / 1.16 GB, free: 28.95 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/1.081, allocations: 96.92 kB / 1.16 GB, free: 28.85 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.081, allocations: 3.094 kB / 1.16 GB, free: 28.85 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/1.081, allocations: 6.938 kB / 1.16 GB, free: 28.85 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.423e-05/1.081, allocations: 2.938 kB / 1.16 GB, free: 28.85 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/1.081, allocations: 0 / 1.16 GB, free: 28.85 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004836/1.081, allocations: 83.89 kB / 1.16 GB, free: 28.84 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/1.081, allocations: 15.31 kB / 1.16 GB, free: 28.84 MB / 1.076 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 9.65e-05/1.081, allocations: 143.4 kB / 1.16 GB, free: 28.7 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/1.081, allocations: 12.8 kB / 1.16 GB, free: 28.7 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/1.081, allocations: 11.53 kB / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.081, allocations: 0 / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.081, allocations: 0 / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/1.081, allocations: 0 / 1.16 GB, free: 28.68 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/1.081, allocations: 134.4 kB / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/1.081, allocations: 0 / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.208e-05/1.081, allocations: 6.328 kB / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/1.081, allocations: 0 / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/1.081, allocations: 7.094 kB / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/1.081, allocations: 4.312 kB / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/1.081, allocations: 0 / 1.16 GB, free: 28.54 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/1.082, allocations: 150.4 kB / 1.161 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.135e-05/1.082, allocations: 6.859 kB / 1.161 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/1.082, allocations: 0 / 1.161 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.375e-05/1.082, allocations: 6.344 kB / 1.161 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/1.082, allocations: 14.53 kB / 1.161 GB, free: 28.42 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/1.082, allocations: 2.688 kB / 1.161 GB, free: 28.42 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.997e-05/1.082, allocations: 97.81 kB / 1.161 GB, free: 28.34 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/1.082, allocations: 0 / 1.161 GB, free: 28.34 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002545/1.082, allocations: 52.03 kB / 1.161 GB, free: 28.33 MB / 1.076 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.0001352/1.082, allocations: 112.1 kB / 1.161 GB, free: 28.23 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003879/1.083, allocations: 409.6 kB / 1.161 GB, free: 27.89 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/1.083, allocations: 2.656 kB / 1.161 GB, free: 27.89 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 5.127e-05/1.083, allocations: 28.53 kB / 1.161 GB, free: 27.89 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/1.083, allocations: 32.36 kB / 1.161 GB, free: 27.88 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003459/1.083, allocations: 189.9 kB / 1.162 GB, free: 27.72 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.025e-05/1.083, allocations: 83.48 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.759e-05/1.083, allocations: 6.281 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.159e-05/1.083, allocations: 14.47 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/1.083, allocations: 0 / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of Templates: time 0.005561/1.089, allocations: 2.935 MB / 1.165 GB, free: 27.28 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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.087754921987653]