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.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.001698/0.001698, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.001935/0.001935, allocations: 192.1 kB / 22.17 MB, free: 5.652 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.618/1.618, allocations: 225.6 MB / 250.9 MB, free: 13.27 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.826/2.826, allocations: 476.7 MB / 0.7645 GB, free: 10.09 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.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: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 67.89 kB / 1.109 GB, free: 6.465 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9723/0.9744, allocations: 168.7 MB / 1.274 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002239/0.9766, allocations: 0.785 MB / 1.275 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.9782, allocations: 1.164 MB / 1.276 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.886e-05/0.9783, allocations: 0 / 1.276 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.36e-05/0.9783, allocations: 3.938 kB / 1.276 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.9784, allocations: 15.86 kB / 1.276 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005301/0.979, allocations: 146.8 kB / 1.276 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.9792, allocations: 123.7 kB / 1.276 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.9793, allocations: 19.94 kB / 1.276 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.9794, allocations: 51.91 kB / 1.276 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.9795, allocations: 51.8 kB / 1.276 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.9795, allocations: 12 kB / 1.276 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.404e-05/0.9796, allocations: 23.98 kB / 1.276 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.9796, allocations: 19.92 kB / 1.276 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.536e-05/0.9797, allocations: 43.78 kB / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.9799, allocations: 126.3 kB / 1.277 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.9799, allocations: 0 / 1.277 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9799, allocations: 0 / 1.277 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.9799, allocations: 4 kB / 1.277 GB, free: 1.918 MB / 0.9669 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.0007534/0.9807, allocations: 424.9 kB / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.9807, allocations: 12.02 kB / 1.277 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.9808, allocations: 8.891 kB / 1.277 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.9809, allocations: 172.3 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.981, allocations: 4.375 kB / 1.277 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.981, allocations: 8.375 kB / 1.277 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.9813, allocations: 86.14 kB / 1.277 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.9813, allocations: 192 / 1.277 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.9813, allocations: 3.938 kB / 1.277 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.9813, allocations: 0 / 1.277 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003127/0.9816, allocations: 71.91 kB / 1.277 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005043/0.9821, allocations: 332.7 kB / 1.278 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.9823, allocations: 58.47 kB / 1.278 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.9825, allocations: 36.92 kB / 1.278 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.9825, allocations: 4 kB / 1.278 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/0.9828, allocations: 99.3 kB / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.9828, allocations: 0 / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006776/0.9835, allocations: 161.6 kB / 1.278 GB, free: 292 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.9836, allocations: 63.34 kB / 1.278 GB, free: 216 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.9837, allocations: 127.6 kB / 1.278 GB, free: 76 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.9837, allocations: 25.7 kB / 1.278 GB, free: 44 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.719e-05/0.9838, allocations: 96.12 kB / 1.278 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.9838, allocations: 19.78 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.9839, allocations: 33.7 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.9841, allocations: 322.8 kB / 1.279 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.9843, allocations: 63.95 kB / 1.279 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.9845, allocations: 78.45 kB / 1.279 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.9849, allocations: 148.1 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.9849, allocations: 0 / 1.279 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005712/0.9855, allocations: 215.2 kB / 1.279 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.9855, allocations: 37.69 kB / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.9855, allocations: 4.062 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.9856, allocations: 4 kB / 1.279 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.9857, allocations: 19.98 kB / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.9857, allocations: 0 / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.9859, allocations: 39.91 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.986, allocations: 7.984 kB / 1.279 GB, free: 14.91 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.0001397/0.9861, allocations: 127.2 kB / 1.279 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.9861, allocations: 7.938 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.9862, allocations: 8.375 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.9862, allocations: 4 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.9862, allocations: 3.984 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.9862, allocations: 0 / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.9864, allocations: 185.5 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.9864, allocations: 0 / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.9865, allocations: 15.98 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.9865, allocations: 4 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.9865, allocations: 3.984 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.9865, allocations: 0 / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.9865, allocations: 4 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004371/0.9869, allocations: 149.3 kB / 1.28 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.987, allocations: 85.06 kB / 1.28 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.987, allocations: 64 / 1.28 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.441e-05/0.9871, allocations: 15.98 kB / 1.28 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.9872, allocations: 15.92 kB / 1.28 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.9872, allocations: 0 / 1.28 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.674e-05/0.9873, allocations: 101.8 kB / 1.28 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.9873, allocations: 0 / 1.28 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002433/0.9875, allocations: 27.88 kB / 1.28 GB, free: 14.07 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.0002524/0.9878, allocations: 111.2 kB / 1.28 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005356/0.9883, allocations: 171.2 kB / 1.28 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9883, allocations: 0 / 1.28 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.9885, allocations: 47.95 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.9888, allocations: 20.08 kB / 1.28 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.9892, allocations: 177.8 kB / 1.281 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.9897, allocations: 0.6911 MB / 1.281 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.668e-05/0.9898, allocations: 4 kB / 1.281 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.9898, allocations: 15.44 kB / 1.281 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.9898, allocations: 0 / 1.281 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of Templates: time 0.005251/0.9951, allocations: 1.593 MB / 1.283 GB, free: 11.2 MB / 0.9825 GB " [Timeout remaining time 299] 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 -s cvode -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_2/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: 9.233565432019532]