Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.001387/0.001387, allocations: 105.8 kB / 19.69 MB, free: 2.258 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.001621/0.001621, allocations: 214.6 kB / 23.01 MB, free: 5.109 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.893/2.893, allocations: 476.8 MB / 0.7714 GB, free: 4.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.002066/0.002066, allocations: 66.12 kB / 1.119 GB, free: 39.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3372, allocations: 170 MB / 1.285 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002091/0.3392, allocations: 0.786 MB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001749/0.341, allocations: 1.2 MB / 1.287 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.707e-05/0.3411, allocations: 0 / 1.287 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.3411, allocations: 3.938 kB / 1.287 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.996e-05/0.3412, allocations: 11.88 kB / 1.287 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000515/0.3417, allocations: 142.3 kB / 1.287 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.3419, allocations: 127.7 kB / 1.287 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.282e-05/0.342, allocations: 15.98 kB / 1.287 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3421, allocations: 47.91 kB / 1.287 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.3422, allocations: 59.8 kB / 1.287 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.3422, allocations: 12 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.766e-05/0.3423, allocations: 31.92 kB / 1.287 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.181e-05/0.3423, allocations: 4 kB / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.126e-05/0.3424, allocations: 47.83 kB / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.3426, allocations: 123.5 kB / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3426, allocations: 0 / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3426, allocations: 0 / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.3426, allocations: 3.984 kB / 1.287 GB, free: 8.203 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.000699/0.3433, allocations: 351.8 kB / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3434, allocations: 16.02 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.3434, allocations: 12.83 kB / 1.288 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.3435, allocations: 110.5 kB / 1.288 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3436, allocations: 4.375 kB / 1.288 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.3436, allocations: 8.375 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.3438, allocations: 82.14 kB / 1.288 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3439, allocations: 4.188 kB / 1.288 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.3439, allocations: 3.938 kB / 1.288 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3439, allocations: 0 / 1.288 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.3442, allocations: 71.92 kB / 1.288 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000508/0.3447, allocations: 307.7 kB / 1.288 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.3449, allocations: 54.48 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.345, allocations: 40.91 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.345, allocations: 4 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.3454, allocations: 99.34 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.3454, allocations: 0 / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006058/0.346, allocations: 161.5 kB / 1.288 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.3461, allocations: 55.41 kB / 1.289 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3462, allocations: 126.1 kB / 1.289 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3462, allocations: 29.7 kB / 1.289 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.3463, allocations: 88.14 kB / 1.289 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.3463, allocations: 23.84 kB / 1.289 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.3464, allocations: 33.64 kB / 1.289 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3466, allocations: 322.8 kB / 1.289 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.3468, allocations: 63.94 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002141/0.347, allocations: 78.52 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.3474, allocations: 144.2 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3474, allocations: 0 / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005453/0.3479, allocations: 219.2 kB / 1.29 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.494e-05/0.348, allocations: 41.69 kB / 1.29 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.348, allocations: 0 / 1.29 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.348, allocations: 4 kB / 1.29 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3481, allocations: 20.05 kB / 1.29 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3481, allocations: 0 / 1.29 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.3484, allocations: 39.89 kB / 1.29 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.3484, allocations: 11.98 kB / 1.29 GB, free: 5.391 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.000171/0.3486, allocations: 121.7 kB / 1.29 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.3486, allocations: 11.89 kB / 1.29 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.343e-05/0.3486, allocations: 12.38 kB / 1.29 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3486, allocations: 4 kB / 1.29 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3486, allocations: 320 / 1.29 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3486, allocations: 0 / 1.29 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.3489, allocations: 156.6 kB / 1.29 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3489, allocations: 0 / 1.29 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.349, allocations: 19.98 kB / 1.29 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.349, allocations: 0 / 1.29 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.349, allocations: 0 / 1.29 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.349, allocations: 8 kB / 1.29 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.349, allocations: 0 / 1.29 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.3494, allocations: 152.9 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.3494, allocations: 15.88 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.3495, allocations: 0 / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.3495, allocations: 19.98 kB / 1.29 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.3496, allocations: 7.984 kB / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.3496, allocations: 0 / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.693e-05/0.3497, allocations: 99.27 kB / 1.29 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3497, allocations: 0 / 1.29 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002204/0.3499, allocations: 20 kB / 1.29 GB, free: 4.684 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001761/0.3501, allocations: 99.19 kB / 1.29 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004908/0.3505, allocations: 183.2 kB / 1.291 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3505, allocations: 96 / 1.291 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.3507, allocations: 47.89 kB / 1.291 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.3509, allocations: 22.08 kB / 1.291 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.3514, allocations: 187.7 kB / 1.291 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.3517, allocations: 0.6885 MB / 1.292 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.873e-05/0.3518, allocations: 11.44 kB / 1.292 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3518, allocations: 0 / 1.292 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of Templates: time 0.00345/0.3552, allocations: 1.324 MB / 1.293 GB, free: 2.07 MB / 0.9825 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.263793348975014]