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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001111/0.001111, allocations: 108.8 kB / 16.41 MB, free: 6.492 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.001172/0.001172, allocations: 185.5 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.292/1.292, 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 11.0.1-master/package.mo): time 2.437/2.437, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.89 kB / 1.055 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7096/0.7109, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001929/0.7129, allocations: 0.7914 MB / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.7143, allocations: 1.147 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.186e-05/0.7144, allocations: 4 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.199e-05/0.7144, allocations: 11.88 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.845e-05/0.7145, allocations: 15.84 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.715, allocations: 140.8 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.7152, allocations: 131.8 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.7153, allocations: 19.94 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.568e-05/0.7154, allocations: 43.91 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.7155, allocations: 59.8 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.7155, allocations: 8 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.122e-05/0.7156, allocations: 31.92 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.7156, allocations: 15.92 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.106e-05/0.7157, allocations: 47.84 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.7159, allocations: 115.7 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.7159, allocations: 0 / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7159, allocations: 0 / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.7159, allocations: 4 kB / 1.211 GB, free: 11.05 MB / 0.9356 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.0006529/0.7166, allocations: 422.6 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.7166, allocations: 12.03 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.7167, allocations: 12.84 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.7168, allocations: 172.2 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.7168, allocations: 4.375 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.7169, allocations: 8.375 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.7171, allocations: 86.12 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.7171, allocations: 192 / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.7171, allocations: 3.938 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.7172, allocations: 0 / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.7175, allocations: 75.92 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004159/0.7179, allocations: 328.7 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.7181, allocations: 54.47 kB / 1.212 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.7183, allocations: 48.92 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.7183, allocations: 4.062 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.7186, allocations: 91.34 kB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.7186, allocations: 0 / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0006084/0.7192, allocations: 165.4 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.7192, allocations: 55.41 kB / 1.212 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.7193, allocations: 130 kB / 1.213 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.7194, allocations: 29.64 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.7194, allocations: 96.03 kB / 1.213 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.7195, allocations: 19.81 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.7195, allocations: 29.7 kB / 1.213 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7197, allocations: 326.8 kB / 1.213 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.7199, allocations: 55.95 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.7201, allocations: 86.77 kB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/0.7205, allocations: 140.1 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.7205, allocations: 4 kB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005102/0.721, allocations: 211.1 kB / 1.214 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.721, allocations: 41.69 kB / 1.214 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.7211, allocations: 0 / 1.214 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.7211, allocations: 4 kB / 1.214 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.7212, allocations: 11.98 kB / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.7212, allocations: 4 kB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.7215, allocations: 36.02 kB / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.7215, allocations: 15.98 kB / 1.214 GB, free: 8.055 MB / 0.9356 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.992e-05/0.7216, allocations: 125.7 kB / 1.214 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.7216, allocations: 7.906 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.7216, allocations: 8.375 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.7217, allocations: 7.984 kB / 1.214 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.7217, allocations: 0 / 1.214 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.7217, allocations: 4 kB / 1.214 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.7218, allocations: 181.6 kB / 1.214 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7218, allocations: 0 / 1.214 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.7219, allocations: 15.98 kB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.7219, allocations: 0 / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.722, allocations: 7.984 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.722, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.722, allocations: 96 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003755/0.7223, allocations: 160.8 kB / 1.214 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.7224, allocations: 85.02 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.7224, allocations: 0 / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.591e-05/0.7225, allocations: 19.92 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.7226, allocations: 7.984 kB / 1.214 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.7226, allocations: 0 / 1.214 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.054e-05/0.7226, allocations: 103.2 kB / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.2e-07/0.7227, allocations: 0 / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002166/0.7229, allocations: 28 kB / 1.214 GB, free: 7.207 MB / 0.9356 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.0001777/0.7231, allocations: 103.4 kB / 1.214 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004859/0.7235, allocations: 191.2 kB / 1.215 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7236, allocations: 0 / 1.215 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.7237, allocations: 51.95 kB / 1.215 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.724, allocations: 19.7 kB / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003618/0.7244, allocations: 179.7 kB / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.7246, allocations: 0.6925 MB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.7247, allocations: 11.44 kB / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.7247, allocations: 0 / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of Templates: time 0.002861/0.7275, allocations: 1.322 MB / 1.217 GB, free: 4.59 MB / 0.9356 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/jenkins1/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