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.00926/0.00926, allocations: 100.5 kB / 15.73 MB, free: 6.496 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.002157/0.002157, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.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.493/2.493, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 68.3 kB / 0.9509 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3837, allocations: 140.4 MB / 1.088 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001858/0.3856, allocations: 0.6923 MB / 1.089 GB, free: 0.8789 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3872, allocations: 1.274 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.394e-05/0.3873, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.3873, allocations: 7.875 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.991e-05/0.3874, allocations: 27.78 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008569/0.3883, allocations: 310.8 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.3886, allocations: 271.6 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.3887, allocations: 16.19 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.3888, allocations: 99.8 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.389, allocations: 95.73 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.062e-05/0.389, allocations: 20 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.748e-05/0.3891, allocations: 35.98 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.031e-05/0.3892, allocations: 19.92 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3893, allocations: 79.8 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.3896, allocations: 227.3 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3896, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3896, allocations: 4 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.391e-06/0.3896, allocations: 0 / 1.091 GB, free: 14.41 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.0006198/0.3902, allocations: 492.3 kB / 1.092 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3903, allocations: 12.03 kB / 1.092 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.375e-05/0.3904, allocations: 12.89 kB / 1.092 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3905, allocations: 180.2 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.3905, allocations: 12.38 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.631e-05/0.3906, allocations: 12.38 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.3907, allocations: 58.23 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3908, allocations: 7.938 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.3908, allocations: 7.922 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3908, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.95e-05/0.3908, allocations: 20 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.3915, allocations: 424.4 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.038e-05/0.3916, allocations: 34.56 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.3916, allocations: 16.86 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.3916, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.3918, allocations: 99.38 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3918, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003315/0.3922, allocations: 137.5 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.3922, allocations: 55.41 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3924, allocations: 136.2 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.3924, allocations: 33.7 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.336e-05/0.3925, allocations: 108.1 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.3925, allocations: 19.97 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.3927, allocations: 65.67 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3928, allocations: 326.8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.393, allocations: 83.95 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.3932, allocations: 138 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.3935, allocations: 238.9 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3935, allocations: 7.938 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006183/0.3942, allocations: 378.5 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.323e-05/0.3943, allocations: 101.1 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3943, allocations: 0 / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.3943, allocations: 4 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.987e-05/0.3943, allocations: 7.938 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.3943, allocations: 0 / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004888/0.3948, allocations: 84.03 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.3949, allocations: 20.36 kB / 1.094 GB, free: 10.8 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.0001309/0.395, allocations: 131.2 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.395, allocations: 15.89 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.3951, allocations: 12.38 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3951, allocations: 7.875 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3951, allocations: 0 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3951, allocations: 4 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.3953, allocations: 193.5 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3953, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.237e-05/0.3953, allocations: 3.984 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3953, allocations: 0 / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3953, allocations: 8 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3953, allocations: 4 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3954, allocations: 80 / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.3956, allocations: 144.9 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.3956, allocations: 81.06 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.3957, allocations: 4 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.793e-05/0.3957, allocations: 7.984 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.3957, allocations: 4 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.3957, allocations: 7.984 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.344e-05/0.3958, allocations: 103.2 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3958, allocations: 4 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002626/0.3961, allocations: 40 kB / 1.095 GB, free: 9.945 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: 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.0001555/0.3963, allocations: 103.2 kB / 1.095 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005147/0.3968, allocations: 369.9 kB / 1.095 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3968, allocations: 0 / 1.095 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.838e-05/0.3969, allocations: 43.92 kB / 1.095 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.3972, allocations: 38.22 kB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003826/0.3975, allocations: 170.9 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.3978, allocations: 0.6963 MB / 1.096 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.134e-05/0.3979, allocations: 4.438 kB / 1.096 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.577e-05/0.3979, allocations: 19.44 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.3979, allocations: 0 / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of Templates: time 0.005662/0.4036, allocations: 2.629 MB / 1.099 GB, free: 5.816 MB / 0.8575 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/jenkins/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