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.001618/0.001618, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001772/0.001772, allocations: 217.1 kB / 23.01 MB, free: 4.609 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 8.035 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.334/3.334, allocations: 0.49 GB / 0.7958 GB, free: 33.36 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.002161/0.002161, allocations: 66.14 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3232, allocations: 176.1 MB / 1.327 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001936/0.3251, allocations: 0.7063 MB / 1.328 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3268, allocations: 1.307 MB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.169e-05/0.3269, allocations: 0 / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.902e-05/0.3269, allocations: 3.938 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.979e-05/0.327, allocations: 23.8 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.3278, allocations: 314.5 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.3281, allocations: 255.6 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.238e-05/0.3282, allocations: 12.17 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.3283, allocations: 103.8 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.3285, allocations: 91.81 kB / 1.33 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.3285, allocations: 27.94 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.643e-05/0.3286, allocations: 39.92 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.3287, allocations: 11.98 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3288, allocations: 87.75 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.329, allocations: 223.3 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3291, allocations: 0 / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3291, allocations: 4 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3291, allocations: 0 / 1.33 GB, free: 14.23 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.0005862/0.3296, allocations: 415.1 kB / 1.331 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3297, allocations: 12.03 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.595e-05/0.3297, allocations: 12.94 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.3299, allocations: 129 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.3299, allocations: 12.38 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.3299, allocations: 12.38 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.33, allocations: 62.17 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3301, allocations: 3.938 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3301, allocations: 0 / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3301, allocations: 0 / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.57e-05/0.3301, allocations: 23.98 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.3307, allocations: 387.6 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.774e-05/0.3308, allocations: 34.5 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.748e-05/0.3308, allocations: 20.94 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.3308, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.331, allocations: 111.4 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 3.106e-06/0.331, allocations: 3.984 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0002983/0.3313, allocations: 137.6 kB / 1.332 GB, free: 12.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.3313, allocations: 59.33 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3315, allocations: 129.8 kB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.3315, allocations: 29.7 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.016e-05/0.3316, allocations: 100.1 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.3316, allocations: 27.78 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3317, allocations: 65.67 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3319, allocations: 330.8 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.332, allocations: 83.95 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.3323, allocations: 136 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.3326, allocations: 235 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3326, allocations: 4 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005935/0.3332, allocations: 378.6 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/0.3332, allocations: 101.1 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3332, allocations: 4.375 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3333, allocations: 0 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.412e-05/0.3333, allocations: 4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.3333, allocations: 11.92 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.3337, allocations: 87.73 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.3338, allocations: 20.06 kB / 1.333 GB, free: 10.82 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.0001323/0.3339, allocations: 130.9 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.3339, allocations: 7.953 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/0.334, allocations: 8.375 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.334, allocations: 4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.334, allocations: 3.984 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.334, allocations: 0 / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.3341, allocations: 160.7 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3341, allocations: 0 / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.56e-05/0.3342, allocations: 7.938 kB / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.3342, allocations: 0 / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3342, allocations: 7.984 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3342, allocations: 3.984 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3342, allocations: 0 / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.3344, allocations: 136.9 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.3344, allocations: 19.88 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3344, allocations: 4 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.454e-05/0.3344, allocations: 4 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.3345, allocations: 11.98 kB / 1.334 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.3345, allocations: 8 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.384e-05/0.3345, allocations: 98.22 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3345, allocations: 0 / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002644/0.3348, allocations: 51.92 kB / 1.334 GB, free: 10.09 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.0001481/0.3349, allocations: 103.2 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004595/0.3354, allocations: 329.9 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3354, allocations: 0 / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.704e-05/0.3355, allocations: 31.98 kB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.3357, allocations: 30.64 kB / 1.334 GB, free: 9.566 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004019/0.3361, allocations: 221.1 kB / 1.335 GB, free: 9.316 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.3364, allocations: 0.6962 MB / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.1e-05/0.3365, allocations: 19.42 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3365, allocations: 0 / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of Templates: time 0.003779/0.3403, allocations: 1.878 MB / 1.337 GB, free: 6.707 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/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: 11.276999783993233]