Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001774/0.001774, allocations: 102.1 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.002166/0.002166, allocations: 220 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.266/3.266, allocations: 0.505 GB / 0.8108 GB, free: 22.08 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.0021/0.0021, allocations: 67.41 kB / 1.178 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3478, allocations: 180.2 MB / 1.354 GB, free: 7.996 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00221/0.35, allocations: 0.7961 MB / 1.355 GB, free: 7.203 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001758/0.3518, allocations: 1.186 MB / 1.356 GB, free: 6.004 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.08e-05/0.3518, allocations: 4 kB / 1.356 GB, free: 6 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.575e-05/0.3519, allocations: 3.938 kB / 1.356 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.574e-05/0.352, allocations: 11.88 kB / 1.356 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005543/0.3525, allocations: 143.5 kB / 1.356 GB, free: 5.848 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.3527, allocations: 123.8 kB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.3529, allocations: 8 kB / 1.356 GB, free: 5.719 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.353, allocations: 63.77 kB / 1.356 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3531, allocations: 47.88 kB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.3531, allocations: 12 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.765e-05/0.3532, allocations: 23.98 kB / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.317e-05/0.3533, allocations: 19.92 kB / 1.357 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.479e-05/0.3533, allocations: 43.84 kB / 1.357 GB, free: 5.512 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.3535, allocations: 123.5 kB / 1.357 GB, free: 5.391 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3535, allocations: 4 kB / 1.357 GB, free: 5.387 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3535, allocations: 0 / 1.357 GB, free: 5.387 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3536, allocations: 0 / 1.357 GB, free: 5.387 MB / 1.045 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.0007536/0.3543, allocations: 351.7 kB / 1.357 GB, free: 5.004 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3543, allocations: 8.031 kB / 1.357 GB, free: 4.996 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.3544, allocations: 12.89 kB / 1.357 GB, free: 4.984 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.3545, allocations: 114.4 kB / 1.357 GB, free: 4.848 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.3546, allocations: 12.38 kB / 1.357 GB, free: 4.836 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.3546, allocations: 4.375 kB / 1.357 GB, free: 4.832 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.3549, allocations: 78.2 kB / 1.357 GB, free: 4.75 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3549, allocations: 192 / 1.357 GB, free: 4.75 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.3549, allocations: 7.922 kB / 1.357 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3549, allocations: 0 / 1.357 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.3552, allocations: 75.92 kB / 1.357 GB, free: 4.668 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.3557, allocations: 303.7 kB / 1.358 GB, free: 4.328 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.3559, allocations: 50.53 kB / 1.358 GB, free: 4.27 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.3561, allocations: 48.86 kB / 1.358 GB, free: 4.219 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.3561, allocations: 0 / 1.358 GB, free: 4.219 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003286/0.3564, allocations: 95.34 kB / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.263e-06/0.3564, allocations: 0 / 1.358 GB, free: 4.113 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.000618/0.3571, allocations: 165.5 kB / 1.358 GB, free: 3.945 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.3571, allocations: 59.33 kB / 1.358 GB, free: 3.875 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.3572, allocations: 124.5 kB / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.3573, allocations: 29.7 kB / 1.358 GB, free: 3.707 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.533e-05/0.3573, allocations: 96.08 kB / 1.358 GB, free: 3.609 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.3574, allocations: 15.91 kB / 1.358 GB, free: 3.594 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.3574, allocations: 33.7 kB / 1.358 GB, free: 3.555 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3576, allocations: 326.8 kB / 1.359 GB, free: 3.227 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.3578, allocations: 55.95 kB / 1.359 GB, free: 3.172 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.3581, allocations: 86.45 kB / 1.359 GB, free: 3.078 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.3584, allocations: 152.2 kB / 1.359 GB, free: 2.914 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3584, allocations: 256 / 1.359 GB, free: 2.914 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005352/0.359, allocations: 211.2 kB / 1.359 GB, free: 2.695 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/0.359, allocations: 37.69 kB / 1.359 GB, free: 2.652 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.359, allocations: 4.062 kB / 1.359 GB, free: 2.648 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3591, allocations: 4 kB / 1.359 GB, free: 2.645 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.3592, allocations: 15.92 kB / 1.359 GB, free: 2.629 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.3592, allocations: 4 kB / 1.359 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.3594, allocations: 47.88 kB / 1.359 GB, free: 2.578 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.3594, allocations: 8 kB / 1.359 GB, free: 2.57 MB / 1.045 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.0001249/0.3596, allocations: 125.7 kB / 1.359 GB, free: 2.438 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.3596, allocations: 7.953 kB / 1.359 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.185e-05/0.3596, allocations: 12.36 kB / 1.359 GB, free: 2.414 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3596, allocations: 0 / 1.359 GB, free: 2.414 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3596, allocations: 4 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3596, allocations: 0 / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.3598, allocations: 152.7 kB / 1.359 GB, free: 2.219 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3598, allocations: 0 / 1.359 GB, free: 2.219 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3599, allocations: 19.98 kB / 1.36 GB, free: 2.199 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3599, allocations: 3.984 kB / 1.36 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-06/0.3599, allocations: 0 / 1.36 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3599, allocations: 0 / 1.36 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3599, allocations: 7.922 kB / 1.36 GB, free: 2.188 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.3603, allocations: 156.9 kB / 1.36 GB, free: 2.016 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.505e-05/0.3603, allocations: 7.953 kB / 1.36 GB, free: 2.008 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3604, allocations: 4 kB / 1.36 GB, free: 2.004 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.3604, allocations: 11.98 kB / 1.36 GB, free: 1.992 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.3605, allocations: 7.984 kB / 1.36 GB, free: 1.984 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.3605, allocations: 0 / 1.36 GB, free: 1.984 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.561e-05/0.3606, allocations: 99.36 kB / 1.36 GB, free: 1.887 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3606, allocations: 3.938 kB / 1.36 GB, free: 1.883 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002225/0.3608, allocations: 24 kB / 1.36 GB, free: 1.859 MB / 1.045 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.0001827/0.361, allocations: 99.23 kB / 1.36 GB, free: 1.754 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005041/0.3615, allocations: 179.3 kB / 1.36 GB, free: 1.566 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3615, allocations: 0 / 1.36 GB, free: 1.566 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3616, allocations: 44.09 kB / 1.36 GB, free: 1.523 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.3619, allocations: 25.73 kB / 1.36 GB, free: 1.5 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/0.3623, allocations: 195.7 kB / 1.36 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3626, allocations: 0.6885 MB / 1.361 GB, free: 0.5586 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.405e-05/0.3627, allocations: 15.44 kB / 1.361 GB, free: 0.5469 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.3627, allocations: 0 / 1.361 GB, free: 0.5469 MB / 1.045 GB Notification: Performance of Templates: time 0.003395/0.3661, allocations: 1.322 MB / 1.362 GB, free: 15.24 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.404994026001077]