Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 108.6 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 187 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.572/2.572, allocations: 437 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 63.91 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.049/1.051, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002295/1.054, allocations: 0.7947 MB / 1.168 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001775/1.055, allocations: 1.158 MB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.176e-05/1.056, allocations: 4 kB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.161e-05/1.056, allocations: 3.938 kB / 1.169 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/1.056, allocations: 7.875 kB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/1.056, allocations: 146.1 kB / 1.169 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002432/1.057, allocations: 131.8 kB / 1.17 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/1.057, allocations: 15.98 kB / 1.17 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/1.057, allocations: 47.91 kB / 1.17 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/1.057, allocations: 59.8 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/1.057, allocations: 16 kB / 1.17 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.16e-05/1.057, allocations: 23.92 kB / 1.17 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.092e-05/1.057, allocations: 19.92 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.31e-05/1.057, allocations: 43.84 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/1.057, allocations: 115.7 kB / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/1.058, allocations: 0 / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.483e-06/1.058, allocations: 4 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.694e-06/1.058, allocations: 0 / 1.17 GB, free: 1.293 MB / 0.8887 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.0007267/1.058, allocations: 422.7 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/1.058, allocations: 12.92 kB / 1.17 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/1.058, allocations: 8.844 kB / 1.17 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/1.059, allocations: 177.6 kB / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/1.059, allocations: 4.375 kB / 1.17 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/1.059, allocations: 4.375 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/1.059, allocations: 86.14 kB / 1.171 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/1.059, allocations: 192 / 1.171 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/1.059, allocations: 7.938 kB / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/1.059, allocations: 0 / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002804/1.059, allocations: 67.92 kB / 1.171 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005052/1.06, allocations: 328.7 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/1.06, allocations: 58.48 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/1.06, allocations: 44.91 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/1.06, allocations: 3.938 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003371/1.06, allocations: 99.34 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/1.06, allocations: 3.938 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0005997/1.061, allocations: 165.4 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/1.061, allocations: 51.41 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/1.061, allocations: 126.6 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/1.061, allocations: 33.7 kB / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.19e-05/1.061, allocations: 92.05 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/1.061, allocations: 15.81 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.773e-05/1.062, allocations: 33.69 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001191/1.062, allocations: 322.8 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/1.062, allocations: 59.94 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/1.062, allocations: 86.52 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/1.062, allocations: 136.2 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.062, allocations: 4 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005544/1.063, allocations: 219.2 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/1.063, allocations: 40.05 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/1.063, allocations: 0 / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/1.063, allocations: 4 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/1.063, allocations: 24.03 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/1.063, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/1.064, allocations: 31.95 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/1.064, allocations: 8 kB / 1.173 GB, free: 14.31 MB / 0.9044 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.0001216/1.064, allocations: 129.6 kB / 1.173 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/1.064, allocations: 7.906 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/1.064, allocations: 12.38 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/1.064, allocations: 4 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/1.064, allocations: 320 / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.064, allocations: 3.984 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/1.064, allocations: 185.6 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.064, allocations: 4 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/1.064, allocations: 15.98 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/1.064, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/1.064, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.064, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.064, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003813/1.064, allocations: 156.9 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/1.065, allocations: 85.02 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/1.065, allocations: 11.95 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.702e-05/1.065, allocations: 19.92 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/1.065, allocations: 8 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/1.065, allocations: 3.984 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.818e-05/1.065, allocations: 92.78 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.065, allocations: 0 / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002458/1.065, allocations: 27.98 kB / 1.173 GB, free: 13.46 MB / 0.9044 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.0001888/1.065, allocations: 99.25 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005025/1.066, allocations: 195.2 kB / 1.174 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.066, allocations: 0 / 1.174 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001745/1.066, allocations: 47.95 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/1.066, allocations: 18.05 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004304/1.067, allocations: 191.8 kB / 1.174 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/1.067, allocations: 0.6846 MB / 1.174 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.529e-05/1.067, allocations: 11.44 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of SimCode: time 4.81e-07/1.067, allocations: 0 / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of Templates: time 0.003074/1.07, allocations: 1.316 MB / 1.176 GB, free: 10.84 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches