Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 110.2 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.001359/0.001359, allocations: 187 kB / 17.34 MB, free: 5.766 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.15 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.415/2.415, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001636, allocations: 67.89 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.001/1.003, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001938/1.005, allocations: 0.7071 MB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001512/1.006, allocations: 1.267 MB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.106e-05/1.006, allocations: 1.094 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.446e-05/1.007, allocations: 4.547 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/1.007, allocations: 20.27 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/1.007, allocations: 316.7 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003461/1.008, allocations: 275.2 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/1.008, allocations: 14.41 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/1.008, allocations: 103.6 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/1.008, allocations: 92.09 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/1.008, allocations: 22.66 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/1.008, allocations: 37.17 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/1.008, allocations: 11.56 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001131/1.009, allocations: 90.06 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003289/1.009, allocations: 221.3 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.009, allocations: 0.7188 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.373e-06/1.009, allocations: 0 / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.861e-06/1.009, allocations: 0.875 kB / 1.092 GB, free: 3.656 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.0005329/1.009, allocations: 488.9 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/1.01, allocations: 9.438 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.856e-05/1.01, allocations: 16.14 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.935e-05/1.01, allocations: 182.8 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/1.01, allocations: 12.45 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/1.01, allocations: 21.27 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/1.01, allocations: 57.06 kB / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/1.01, allocations: 3.938 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/1.01, allocations: 1.828 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/1.01, allocations: 1.031 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.622e-05/1.01, allocations: 21.38 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005544/1.011, allocations: 412.2 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.59e-05/1.011, allocations: 34.44 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.897e-05/1.011, allocations: 23.47 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/1.011, allocations: 0.8438 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/1.011, allocations: 108 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/1.011, allocations: 1.125 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003194/1.011, allocations: 140.8 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/1.011, allocations: 57.73 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/1.011, allocations: 133.9 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.927e-05/1.011, allocations: 31.58 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/1.011, allocations: 100.7 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/1.012, allocations: 17.83 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/1.012, allocations: 67.05 kB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.774e-05/1.012, allocations: 323.7 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/1.012, allocations: 87.48 kB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/1.012, allocations: 135.9 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/1.012, allocations: 249 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/1.012, allocations: 0 / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006224/1.013, allocations: 367.7 kB / 1.095 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/1.013, allocations: 102.5 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/1.013, allocations: 2.766 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/1.013, allocations: 2.031 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.701e-05/1.013, allocations: 11.72 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/1.013, allocations: 3.125 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/1.014, allocations: 80.61 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.926e-05/1.014, allocations: 20.89 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001016/1.014, allocations: 135.9 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/1.014, allocations: 9.406 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/1.014, allocations: 10.83 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/1.014, allocations: 1.438 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.014, allocations: 4.719 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.014, allocations: 4.734 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/1.014, allocations: 192.4 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/1.014, allocations: 0 / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.278e-05/1.014, allocations: 3.031 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/1.014, allocations: 5.359 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/1.014, allocations: 1.484 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.014, allocations: 1.484 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.014, allocations: 0.6562 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/1.014, allocations: 138.8 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/1.014, allocations: 87.48 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/1.014, allocations: 6.094 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.395e-05/1.014, allocations: 1.359 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/1.015, allocations: 15.7 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/1.015, allocations: 4.5 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.15e-05/1.015, allocations: 97.83 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.015, allocations: 0 / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002791/1.015, allocations: 43.95 kB / 1.096 GB, free: 444 kB / 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001534/1.015, allocations: 109.9 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004998/1.016, allocations: 367.7 kB / 1.096 GB, free: 76 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/1.016, allocations: 4.062 kB / 1.096 GB, free: 72 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/1.016, allocations: 40.55 kB / 1.096 GB, free: 60 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/1.016, allocations: 31.84 kB / 1.096 GB, free: 48 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004476/1.016, allocations: 217.8 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/1.017, allocations: 0.7 MB / 1.097 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/1.017, allocations: 13.28 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of SimCode: time 7.01e-07/1.017, allocations: 0.6562 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of Templates: time 0.004825/1.022, allocations: 1.887 MB / 1.099 GB, free: 14.95 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches