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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.001191, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.928/2.928, allocations: 472.7 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 65.31 kB / 0.9121 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.3977, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00245/0.4002, allocations: 0.7905 MB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001675/0.4019, allocations: 1.157 MB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.526e-05/0.402, allocations: 4 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.417e-05/0.4021, allocations: 3.938 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.157e-05/0.4021, allocations: 7.875 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.4027, allocations: 147.2 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.4029, allocations: 123.8 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.403, allocations: 15.98 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.4031, allocations: 63.81 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.246e-05/0.4032, allocations: 43.83 kB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.4033, allocations: 8 kB / 1.071 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.726e-05/0.4034, allocations: 31.98 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.4034, allocations: 11.92 kB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.746e-05/0.4035, allocations: 47.83 kB / 1.071 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.4037, allocations: 115.7 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4037, allocations: 4 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4037, allocations: 0 / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.4037, allocations: 0 / 1.071 GB, free: 7.84 MB / 0.8262 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.0006637/0.4044, allocations: 421.2 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.4044, allocations: 12.03 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.908e-05/0.4045, allocations: 12.84 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.4046, allocations: 176.2 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.4046, allocations: 4.375 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.4047, allocations: 8.375 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.4049, allocations: 78.14 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.405, allocations: 192 / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.405, allocations: 3.938 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.405, allocations: 4 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.4053, allocations: 71.92 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.4058, allocations: 332.7 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.406, allocations: 54.48 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.4061, allocations: 44.91 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.4062, allocations: 4 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.4064, allocations: 95.34 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.956e-06/0.4065, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006312/0.4071, allocations: 165.5 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.4071, allocations: 59.41 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.4073, allocations: 126 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.4073, allocations: 29.7 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.4074, allocations: 92.05 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.4074, allocations: 23.73 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.026e-05/0.4075, allocations: 29.7 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4076, allocations: 322.8 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.4078, allocations: 59.94 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.4081, allocations: 86.58 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.4084, allocations: 144.1 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4084, allocations: 4 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000545/0.409, allocations: 215.2 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.409, allocations: 33.7 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4091, allocations: 0 / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4091, allocations: 3.984 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4092, allocations: 20.05 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.4092, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.4095, allocations: 43.94 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.4095, allocations: 7.984 kB / 1.073 GB, free: 4.836 MB / 0.8262 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.0001221/0.4096, allocations: 127.5 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.4097, allocations: 7.906 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.4097, allocations: 8.375 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4097, allocations: 4 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4097, allocations: 0 / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4097, allocations: 7.984 kB / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.4099, allocations: 181.6 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4099, allocations: 0 / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.41, allocations: 15.98 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.41, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.41, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.4101, allocations: 3.984 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4101, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.4105, allocations: 156.9 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.4105, allocations: 85.02 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.4105, allocations: 7.938 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.4106, allocations: 15.92 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.4107, allocations: 7.984 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.4107, allocations: 4.219 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.872e-05/0.4108, allocations: 99.2 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.4108, allocations: 0 / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000221/0.411, allocations: 20 kB / 1.074 GB, free: 4.004 MB / 0.8262 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.0002235/0.4112, allocations: 109.5 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005125/0.4117, allocations: 199.2 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4118, allocations: 0 / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.4119, allocations: 47.95 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.4122, allocations: 17.48 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.4126, allocations: 162.1 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.4129, allocations: 0.6923 MB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.065e-05/0.413, allocations: 8 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.413, allocations: 7.438 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.413, allocations: 4 kB / 1.075 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of Templates: time 0.004258/0.4173, allocations: 1.586 MB / 1.077 GB, free: 1.137 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches