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) 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 11.1.0-maint.11.x/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_11_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.004909/0.004909, allocations: 97.36 kB / 15.73 MB, free: 6.047 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.001077/0.001077, allocations: 196.2 kB / 16.68 MB, free: 5.973 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.864/2.864, allocations: 469.8 MB / 0.7425 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4021, allocations: 159.1 MB / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002345/0.4045, allocations: 0.7975 MB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.4063, allocations: 1.155 MB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.81e-05/0.4064, allocations: 4 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.036e-05/0.4065, allocations: 7.875 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.4066, allocations: 15.84 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006155/0.4072, allocations: 131.6 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.4074, allocations: 123.8 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.4076, allocations: 19.94 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.4077, allocations: 51.91 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.4078, allocations: 51.75 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.4079, allocations: 12 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.014e-05/0.408, allocations: 27.97 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.408, allocations: 15.92 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.646e-05/0.4081, allocations: 43.84 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002422/0.4083, allocations: 123.6 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4083, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4083, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.4083, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 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.000754/0.4091, allocations: 424.9 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4091, allocations: 8.031 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.792e-05/0.4092, allocations: 16.83 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.4094, allocations: 172.3 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.4094, allocations: 8.375 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.4094, allocations: 12.31 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.4097, allocations: 78.2 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4097, allocations: 192 / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.4097, allocations: 3.938 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.4097, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.41, allocations: 75.91 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004889/0.4105, allocations: 324.8 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.4107, allocations: 62.47 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.4108, allocations: 40.92 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.4109, allocations: 0 / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.4112, allocations: 99.3 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.4112, allocations: 0 / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0005666/0.4117, allocations: 161.6 kB / 1.225 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.4118, allocations: 63.39 kB / 1.225 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.974e-05/0.4119, allocations: 133.7 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.4119, allocations: 25.7 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.541e-05/0.4119, allocations: 96.19 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.412, allocations: 19.84 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-05/0.412, allocations: 29.7 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4121, allocations: 326.8 kB / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.4124, allocations: 59.95 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.4126, allocations: 86.58 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.4129, allocations: 148.1 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4129, allocations: 0 / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005265/0.4134, allocations: 215.2 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.4135, allocations: 33.69 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.4135, allocations: 4.062 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4135, allocations: 4 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.4136, allocations: 15.98 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.4136, allocations: 0 / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.4139, allocations: 47.89 kB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.4139, allocations: 4 kB / 1.226 GB, free: 8.102 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.0001054/0.414, allocations: 125.7 kB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.414, allocations: 4 kB / 1.226 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.414, allocations: 16.36 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.414, allocations: 96 / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4141, allocations: 3.938 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4141, allocations: 0 / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.4142, allocations: 189.5 kB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.4142, allocations: 0 / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.4143, allocations: 19.97 kB / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4143, allocations: 0 / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.4143, allocations: 4 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4143, allocations: 4 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4143, allocations: 3.984 kB / 1.226 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.4147, allocations: 148.9 kB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.4147, allocations: 81.06 kB / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.4148, allocations: 8 kB / 1.226 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.006e-05/0.4148, allocations: 15.92 kB / 1.226 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.4149, allocations: 7.984 kB / 1.226 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.4149, allocations: 128 / 1.226 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.038e-05/0.415, allocations: 99.27 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.415, allocations: 0 / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002252/0.4152, allocations: 23.94 kB / 1.227 GB, free: 7.262 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.0002002/0.4154, allocations: 115.2 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004661/0.4158, allocations: 175.2 kB / 1.227 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4158, allocations: 0 / 1.227 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.416, allocations: 43.95 kB / 1.227 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.4162, allocations: 20.05 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.4167, allocations: 165.8 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.4169, allocations: 0.6923 MB / 1.228 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.908e-05/0.4169, allocations: 4 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.114e-05/0.417, allocations: 15.44 kB / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of SimCode: time 5.01e-07/0.417, allocations: 0 / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of Templates: time 0.004112/0.4211, allocations: 1.572 MB / 1.229 GB, free: 4.422 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches