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.001692/0.001692, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001918/0.001918, allocations: 215.4 kB / 22.99 MB, free: 4.945 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.208/3.208, allocations: 0.4892 GB / 0.7951 GB, free: 35.44 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.002099/0.002099, allocations: 71.45 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3097, allocations: 176.1 MB / 1.326 GB, free: 1.828 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002084/0.3118, allocations: 0.6813 MB / 1.327 GB, free: 1.152 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001772/0.3136, allocations: 1.284 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.3136, allocations: 4 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.3137, allocations: 7.938 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.465e-05/0.3137, allocations: 15.86 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.3146, allocations: 314.5 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.3149, allocations: 251.6 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.315, allocations: 16.17 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.3152, allocations: 103.8 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.3154, allocations: 83.75 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.3155, allocations: 20 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.495e-05/0.3156, allocations: 35.98 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.3156, allocations: 19.86 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.3157, allocations: 79.81 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.316, allocations: 223.3 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.316, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.054e-06/0.316, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.316, allocations: 0 / 1.329 GB, free: 14.71 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.0006796/0.3167, allocations: 423.1 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3167, allocations: 12.03 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.899e-05/0.3168, allocations: 12.89 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3169, allocations: 122.5 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.317, allocations: 4.375 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.317, allocations: 20.38 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.3171, allocations: 58.17 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3172, allocations: 3.938 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3172, allocations: 0 / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.3172, allocations: 4 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.248e-05/0.3172, allocations: 23.92 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.3178, allocations: 320.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.374e-05/0.3179, allocations: 34.45 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.3179, allocations: 24.94 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.3179, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.3181, allocations: 103.4 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.3181, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003382/0.3185, allocations: 145.5 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3185, allocations: 51.41 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.3186, allocations: 136.5 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.3187, allocations: 33.64 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.073e-05/0.3188, allocations: 104.1 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.3188, allocations: 19.86 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3189, allocations: 73.61 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3191, allocations: 318.8 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.3193, allocations: 177 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.3196, allocations: 232.1 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.3199, allocations: 239 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3199, allocations: 0 / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007074/0.3206, allocations: 471.5 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.943e-05/0.3207, allocations: 101.1 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3207, allocations: 0 / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3208, allocations: 4 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.445e-05/0.3208, allocations: 8.188 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3208, allocations: 3.938 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.3213, allocations: 83.78 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-05/0.3213, allocations: 23.98 kB / 1.333 GB, free: 11.05 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.0001365/0.3214, allocations: 131.1 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.706e-05/0.3215, allocations: 7.953 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.3215, allocations: 8.375 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3215, allocations: 3.984 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3215, allocations: 4 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3215, allocations: 3.984 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.3216, allocations: 129.2 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3216, allocations: 0 / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.038e-05/0.3217, allocations: 7.984 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3217, allocations: 7.875 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3217, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3217, allocations: 8 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3217, allocations: 80 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.3219, allocations: 144.9 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/0.3219, allocations: 15.89 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.3219, allocations: 0 / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.758e-05/0.3219, allocations: 8 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.705e-05/0.322, allocations: 7.984 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.322, allocations: 4 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.44e-05/0.3221, allocations: 103.2 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3221, allocations: 96 / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002669/0.3223, allocations: 47.94 kB / 1.333 GB, free: 10.36 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.0001458/0.3225, allocations: 99.25 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005381/0.323, allocations: 423.1 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.323, allocations: 0 / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.558e-05/0.3231, allocations: 31.98 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3234, allocations: 35.72 kB / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004244/0.3238, allocations: 220.7 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.404e-05/0.3239, allocations: 83.83 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.716e-05/0.3239, allocations: 11.44 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of SimCode: time 3.7e-07/0.3239, allocations: 0 / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of Templates: time 0.004148/0.328, allocations: 1.911 MB / 1.336 GB, free: 7.461 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.148692512884736]