Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 111.7 kB / 18.88 MB, free: 2.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 204.8 kB / 22.18 MB, free: 5.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.845/2.845, allocations: 476.7 MB / 0.7645 GB, free: 10.12 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 69.36 kB / 1.109 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3751, allocations: 168.7 MB / 1.274 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002366/0.3774, allocations: 0.6982 MB / 1.275 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.3794, allocations: 1.276 MB / 1.276 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.724e-05/0.3794, allocations: 3.938 kB / 1.276 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.3795, allocations: 7.875 kB / 1.276 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.736e-05/0.3796, allocations: 19.84 kB / 1.276 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.3806, allocations: 306.8 kB / 1.276 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000509/0.3811, allocations: 255.6 kB / 1.277 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3813, allocations: 8.188 kB / 1.277 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.3814, allocations: 103.8 kB / 1.277 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.3817, allocations: 95.73 kB / 1.277 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.909e-05/0.3817, allocations: 24 kB / 1.277 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.3818, allocations: 31.98 kB / 1.277 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.527e-05/0.3819, allocations: 15.92 kB / 1.277 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.382, allocations: 83.8 kB / 1.277 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.3824, allocations: 231.3 kB / 1.277 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.3824, allocations: 0 / 1.277 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.577e-06/0.3824, allocations: 0 / 1.277 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.3824, allocations: 0 / 1.277 GB, free: 8.086 MB / 0.9825 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.0008535/0.3833, allocations: 496.2 kB / 1.278 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3833, allocations: 8.031 kB / 1.278 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.3834, allocations: 16.89 kB / 1.278 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.3836, allocations: 180.2 kB / 1.278 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.3836, allocations: 12.38 kB / 1.278 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.3837, allocations: 12.38 kB / 1.278 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.3838, allocations: 58.23 kB / 1.278 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3838, allocations: 7.938 kB / 1.278 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.3838, allocations: 3.984 kB / 1.278 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3838, allocations: 0 / 1.278 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.539e-05/0.3839, allocations: 20 kB / 1.278 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/0.3845, allocations: 420.4 kB / 1.278 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.228e-05/0.3846, allocations: 38.55 kB / 1.278 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.792e-05/0.3847, allocations: 22.02 kB / 1.278 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.3847, allocations: 0 / 1.278 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.3849, allocations: 99.31 kB / 1.278 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.3849, allocations: 0 / 1.278 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003611/0.3852, allocations: 137.5 kB / 1.279 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.3853, allocations: 59.41 kB / 1.279 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.3856, allocations: 141.8 kB / 1.279 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.3856, allocations: 29.7 kB / 1.279 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.168e-05/0.3857, allocations: 100.1 kB / 1.279 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.3857, allocations: 23.92 kB / 1.279 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.3859, allocations: 65.67 kB / 1.279 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3861, allocations: 326.8 kB / 1.279 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.3863, allocations: 83.95 kB / 1.279 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.3866, allocations: 138 kB / 1.28 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.3869, allocations: 242.2 kB / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3869, allocations: 0 / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006524/0.3875, allocations: 378.5 kB / 1.28 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.341e-05/0.3876, allocations: 105.1 kB / 1.28 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3876, allocations: 0 / 1.28 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3876, allocations: 8 kB / 1.28 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.764e-05/0.3877, allocations: 7.938 kB / 1.28 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.3877, allocations: 4.125 kB / 1.28 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.3882, allocations: 87.8 kB / 1.28 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.3882, allocations: 19.98 kB / 1.28 GB, free: 4.469 MB / 0.9825 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.0001441/0.3884, allocations: 131.2 kB / 1.28 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.3884, allocations: 15.94 kB / 1.28 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.312e-05/0.3884, allocations: 12.31 kB / 1.28 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3884, allocations: 0 / 1.28 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3885, allocations: 4 kB / 1.28 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3885, allocations: 0 / 1.28 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.3887, allocations: 193.5 kB / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3887, allocations: 0 / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.438e-06/0.3887, allocations: 0 / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.3887, allocations: 0 / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.3887, allocations: 4 kB / 1.281 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3887, allocations: 4.375 kB / 1.281 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3887, allocations: 0 / 1.281 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.3889, allocations: 152.8 kB / 1.281 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.3891, allocations: 85 kB / 1.281 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.3891, allocations: 4 kB / 1.281 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.583e-05/0.3891, allocations: 3.984 kB / 1.281 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.3891, allocations: 8 kB / 1.281 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.3892, allocations: 7.984 kB / 1.281 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.562e-05/0.3892, allocations: 105.7 kB / 1.281 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3892, allocations: 0 / 1.281 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002869/0.3895, allocations: 44 kB / 1.281 GB, free: 3.613 MB / 0.9825 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.0002069/0.3897, allocations: 103.7 kB / 1.281 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005233/0.3903, allocations: 322 kB / 1.281 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3903, allocations: 0 / 1.281 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.948e-05/0.3904, allocations: 36.3 kB / 1.282 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.3906, allocations: 29.38 kB / 1.282 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004539/0.3911, allocations: 190.8 kB / 1.282 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.3915, allocations: 0.6963 MB / 1.282 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.213e-05/0.3915, allocations: 12.42 kB / 1.282 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.3915, allocations: 15.72 kB / 1.282 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.3915, allocations: 0 / 1.282 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of Templates: time 0.006887/0.3984, allocations: 2.655 MB / 1.285 GB, free: 15.5 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.905011217109859]