Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.002027/0.002027, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 71.88 kB / 0.9516 GB, free: 7.578 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7909/0.7923, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001967/0.7943, allocations: 0.7818 MB / 1.089 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.7957, allocations: 1.138 MB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.113e-05/0.7957, allocations: 5.062 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.303e-05/0.7958, allocations: 8.391 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.275e-05/0.7958, allocations: 11.92 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.7964, allocations: 129.1 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.7966, allocations: 144.2 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.7967, allocations: 12.73 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.7968, allocations: 50.72 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.7969, allocations: 52.78 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.797, allocations: 14.97 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.7971, allocations: 25 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.082e-05/0.7971, allocations: 14.16 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.177e-05/0.7972, allocations: 43.81 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.7975, allocations: 123.5 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.7975, allocations: 0 / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.285e-06/0.7975, allocations: 1.891 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.7975, allocations: 0 / 1.091 GB, free: 3.887 MB / 0.8575 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.0006862/0.7982, allocations: 421.5 kB / 1.092 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.7982, allocations: 10.25 kB / 1.092 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.336e-05/0.7983, allocations: 14.34 kB / 1.092 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.647e-05/0.7984, allocations: 181.4 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.7984, allocations: 7.375 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.7985, allocations: 7.344 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.7987, allocations: 74.67 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.7988, allocations: 192 / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.7988, allocations: 4.719 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.7988, allocations: 0.8125 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.7991, allocations: 79.69 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.7996, allocations: 323 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.7998, allocations: 54.95 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.8, allocations: 43.25 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.8, allocations: 5.672 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003109/0.8003, allocations: 94.41 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.8003, allocations: 0.7188 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006194/0.8009, allocations: 167.1 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.801, allocations: 53.39 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.8011, allocations: 127.9 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.8011, allocations: 28.11 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.8012, allocations: 106.1 kB / 1.093 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.8012, allocations: 11.58 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.8013, allocations: 35.47 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.8013, allocations: 318.9 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.8016, allocations: 62.58 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.8018, allocations: 84.02 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.8022, allocations: 144.3 kB / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8022, allocations: 0 / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005394/0.8027, allocations: 214.5 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.8028, allocations: 34.47 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.8028, allocations: 5.859 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.8028, allocations: 0.5625 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.8029, allocations: 16.2 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.8029, allocations: 2.25 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.8032, allocations: 43.64 kB / 1.094 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.8032, allocations: 9.734 kB / 1.094 GB, free: 1.781 MB / 0.8575 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 8.187e-05/0.8033, allocations: 128.8 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.8033, allocations: 7.688 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.8034, allocations: 11.23 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.8034, allocations: 0.75 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.8034, allocations: 4.625 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.8034, allocations: 0.5625 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.8035, allocations: 192 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.8035, allocations: 0 / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.8036, allocations: 15.91 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.8036, allocations: 1.281 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.8037, allocations: 1.375 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.8037, allocations: 1.578 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.8037, allocations: 0 / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.804, allocations: 156.7 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.8041, allocations: 83.73 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.8041, allocations: 1.516 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.327e-05/0.8042, allocations: 11.92 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.8042, allocations: 5.172 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.8042, allocations: 9.938 kB / 1.094 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.8043, allocations: 93.53 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.61e-07/0.8043, allocations: 3.938 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002293/0.8045, allocations: 25.17 kB / 1.095 GB, free: 1.141 MB / 0.8575 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.0001503/0.8047, allocations: 101.8 kB / 1.095 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004888/0.8052, allocations: 189.2 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8052, allocations: 0 / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.8054, allocations: 54.56 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.8056, allocations: 14.45 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003396/0.806, allocations: 188.1 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.8061, allocations: 0.6871 MB / 1.096 GB, free: 72 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.8061, allocations: 11.19 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.8061, allocations: 3.938 kB / 1.096 GB, free: 60 kB / 0.8575 GB Notification: Performance of Templates: time 0.00356/0.8097, allocations: 1.312 MB / 1.097 GB, free: 15.95 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches