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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001603/0.001603, allocations: 100.1 kB / 15.88 MB, free: 12 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.001956/0.001956, allocations: 200.7 kB / 16.79 MB, free: 6.809 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.2 MB / 0.6649 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6687/0.6701, allocations: 140.4 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001816/0.6719, allocations: 0.8503 MB / 0.9504 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.6731, allocations: 1.144 MB / 0.9516 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.804e-05/0.6732, allocations: 0 / 0.9516 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.571e-05/0.6732, allocations: 7.938 kB / 0.9516 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.6733, allocations: 10.23 kB / 0.9516 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.6737, allocations: 117.3 kB / 0.9517 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.6738, allocations: 115.1 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.582e-05/0.6739, allocations: 18.11 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.021e-05/0.674, allocations: 50.08 kB / 0.9519 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.514e-05/0.6741, allocations: 46.91 kB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.6741, allocations: 7.094 kB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.625e-05/0.6742, allocations: 20.98 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.6743, allocations: 9.969 kB / 0.9519 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.6743, allocations: 45.45 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.6745, allocations: 78.84 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.6745, allocations: 0 / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.6745, allocations: 0 / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.6745, allocations: 0 / 0.9521 GB, free: 7.25 MB / 0.7169 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.0005598/0.6751, allocations: 434.9 kB / 0.9525 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.6751, allocations: 8.375 kB / 0.9525 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.6751, allocations: 10.88 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.808e-05/0.6752, allocations: 171.7 kB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.6752, allocations: 3.75 kB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.6753, allocations: 10.09 kB / 0.9527 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.6755, allocations: 82.92 kB / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.6755, allocations: 1.281 kB / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.6756, allocations: 3.938 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.6756, allocations: 5.578 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.6759, allocations: 74.16 kB / 0.9528 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.6762, allocations: 329.4 kB / 0.9531 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.6764, allocations: 56 kB / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.6766, allocations: 41.98 kB / 0.9532 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.6766, allocations: 1.594 kB / 0.9532 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.6769, allocations: 99.22 kB / 0.9533 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.6769, allocations: 0 / 0.9533 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005671/0.6774, allocations: 166.6 kB / 0.9535 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.6775, allocations: 52.47 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.6776, allocations: 126.1 kB / 0.9537 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.6776, allocations: 37.05 kB / 0.9537 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.82e-05/0.6776, allocations: 88.58 kB / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.6777, allocations: 17.05 kB / 0.9538 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.6777, allocations: 30.3 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.358e-05/0.6778, allocations: 320.7 kB / 0.9541 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.678, allocations: 64.19 kB / 0.9542 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.6782, allocations: 81.61 kB / 0.9543 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.6785, allocations: 146.4 kB / 0.9544 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.6785, allocations: 0 / 0.9544 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004789/0.679, allocations: 207.7 kB / 0.9546 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.6791, allocations: 40.11 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.6791, allocations: 5.141 kB / 0.9547 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.6791, allocations: 1.812 kB / 0.9547 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.6792, allocations: 15.8 kB / 0.9547 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.6792, allocations: 0 / 0.9547 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.6795, allocations: 34.42 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.6795, allocations: 13.3 kB / 0.9547 GB, free: 4.855 MB / 0.7169 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 7.057e-05/0.6796, allocations: 136.2 kB / 0.9548 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.6796, allocations: 6.781 kB / 0.9548 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.6796, allocations: 9.969 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.6796, allocations: 1.688 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6796, allocations: 320 / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.6796, allocations: 3.984 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.901e-05/0.6797, allocations: 186.5 kB / 0.955 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.6798, allocations: 0 / 0.955 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.938e-05/0.6799, allocations: 18.83 kB / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.6799, allocations: 0 / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.6799, allocations: 5.125 kB / 0.9551 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.6799, allocations: 1.266 kB / 0.9551 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6799, allocations: 7.969 kB / 0.9551 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.6802, allocations: 148.4 kB / 0.9552 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.6803, allocations: 87.09 kB / 0.9553 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.6803, allocations: 5.125 kB / 0.9553 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.644e-05/0.6804, allocations: 15.08 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.6804, allocations: 6.797 kB / 0.9553 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.6804, allocations: 1.562 kB / 0.9553 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.432e-05/0.6805, allocations: 98.2 kB / 0.9554 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6805, allocations: 0 / 0.9554 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002148/0.6807, allocations: 24.34 kB / 0.9554 GB, free: 4.148 MB / 0.7169 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.0001417/0.6809, allocations: 103.7 kB / 0.9555 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004541/0.6813, allocations: 189.8 kB / 0.9557 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6813, allocations: 0 / 0.9557 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.6815, allocations: 53.3 kB / 0.9558 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.6817, allocations: 19.14 kB / 0.9558 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.6821, allocations: 200.9 kB / 0.956 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.6822, allocations: 0.6933 MB / 0.9567 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.6822, allocations: 10.06 kB / 0.9567 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.6822, allocations: 0 / 0.9567 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of Templates: time 0.002783/0.685, allocations: 1.293 MB / 0.9579 GB, free: 2.332 MB / 0.7169 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