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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008397/0.0008396, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001027/0.001027, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.786/2.786, allocations: 437.7 MB / 0.7117 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004724, allocations: 15.94 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7751/0.7756, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001126/0.7768, allocations: 0.4948 MB / 1.023 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.7783, allocations: 1.121 MB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.108e-05/0.7784, allocations: 4 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.371e-05/0.7784, allocations: 3.938 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.322e-05/0.7785, allocations: 19.86 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.7791, allocations: 127.6 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.7792, allocations: 99.75 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.7793, allocations: 15.97 kB / 1.024 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.7794, allocations: 43.89 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.387e-05/0.7795, allocations: 47.83 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.7796, allocations: 4 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.567e-05/0.7796, allocations: 15.98 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.7797, allocations: 11.98 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.7797, allocations: 41.64 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.7799, allocations: 83.75 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.7799, allocations: 3.984 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7799, allocations: 0 / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.7799, allocations: 0 / 1.025 GB, free: 13.9 MB / 0.7794 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.0006359/0.7805, allocations: 420.5 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.7806, allocations: 8.031 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.024e-05/0.7806, allocations: 7.906 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.7808, allocations: 167 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.7808, allocations: 4 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.7808, allocations: 11.95 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.7811, allocations: 93.58 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.7811, allocations: 0 / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.7811, allocations: 4 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.7812, allocations: 0 / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.7814, allocations: 91.91 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004721/0.7819, allocations: 336.7 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.7821, allocations: 70.47 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.7823, allocations: 48.92 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.7823, allocations: 0 / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.7826, allocations: 111.3 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.7826, allocations: 0 / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005799/0.7832, allocations: 197.4 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.7832, allocations: 59.39 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.7833, allocations: 125.9 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.7834, allocations: 25.7 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.7834, allocations: 100 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.7835, allocations: 15.81 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.7835, allocations: 0 / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.7836, allocations: 326.8 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.7838, allocations: 67.95 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.784, allocations: 102.5 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.7842, allocations: 89.66 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.7843, allocations: 0 / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005073/0.7848, allocations: 239.3 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.7848, allocations: 39.58 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.7848, allocations: 7.875 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.7849, allocations: 0 / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.785, allocations: 23.97 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.785, allocations: 4 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.7853, allocations: 55.86 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.7853, allocations: 4 kB / 1.027 GB, free: 10.86 MB / 0.7794 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,$PRE.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.7854, allocations: 133.7 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.7854, allocations: 4 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/0.7855, allocations: 12.38 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.7855, allocations: 0 / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.7855, allocations: 0 / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7855, allocations: 0 / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.7856, allocations: 189.8 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.7856, allocations: 8 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.875e-05/0.7857, allocations: 19.92 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.7858, allocations: 11.98 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.7858, allocations: 0 / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.7858, allocations: 0 / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7858, allocations: 0 / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.7862, allocations: 169 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.7862, allocations: 84.97 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.7862, allocations: 7.984 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.118e-05/0.7863, allocations: 19.98 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.7864, allocations: 7.984 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.7864, allocations: 4 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.802e-05/0.7864, allocations: 91.27 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7865, allocations: 0 / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002253/0.7867, allocations: 24 kB / 1.028 GB, free: 9.988 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001806/0.7869, allocations: 107.2 kB / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004694/0.7873, allocations: 207.3 kB / 1.028 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7874, allocations: 4.125 kB / 1.028 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.7875, allocations: 59.89 kB / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.7878, allocations: 20.02 kB / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.7881, allocations: 178.5 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.7884, allocations: 0.6887 MB / 1.029 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.144e-05/0.7884, allocations: 8.188 kB / 1.029 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.7885, allocations: 11.44 kB / 1.029 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7885, allocations: 0 / 1.029 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of Templates: time 0.003982/0.7924, allocations: 1.345 MB / 1.031 GB, free: 7.312 MB / 0.7794 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/jenkins/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