Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_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_latest_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.001841/0.001841, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.002417/0.002417, allocations: 187 kB / 17.34 MB, free: 5.742 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.521/2.521, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001423, allocations: 79.81 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7851/0.7866, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002116/0.7887, allocations: 0.7025 MB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001714/0.7905, allocations: 1.268 MB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.662e-05/0.7906, allocations: 0 / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.43e-05/0.7906, allocations: 7.875 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.253e-05/0.7907, allocations: 15.86 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009136/0.7916, allocations: 313.8 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.792, allocations: 275.6 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.7922, allocations: 16.16 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.7923, allocations: 99.86 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.7925, allocations: 91.73 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.7926, allocations: 24 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.7927, allocations: 35.98 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.7928, allocations: 15.92 kB / 1.211 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.7929, allocations: 91.73 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.7932, allocations: 219.3 kB / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7932, allocations: 3.938 kB / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.884e-06/0.7932, allocations: 0 / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.7932, allocations: 0 / 1.212 GB, free: 10.46 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.0006852/0.7939, allocations: 490.2 kB / 1.212 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.794, allocations: 12.03 kB / 1.212 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.21e-05/0.7941, allocations: 16.84 kB / 1.212 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.7942, allocations: 174.8 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.7942, allocations: 20.3 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.7943, allocations: 16.38 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.7944, allocations: 66.2 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.7945, allocations: 3.938 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.7945, allocations: 0 / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.7945, allocations: 0 / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.998e-05/0.7946, allocations: 23.92 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005937/0.7952, allocations: 408.6 kB / 1.213 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.102e-05/0.7952, allocations: 30.58 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.73e-05/0.7953, allocations: 24.94 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.7953, allocations: 0 / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.7955, allocations: 103.2 kB / 1.213 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.7955, allocations: 0 / 1.213 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003161/0.7959, allocations: 137.5 kB / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.7959, allocations: 63.41 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.7961, allocations: 133.7 kB / 1.213 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.7961, allocations: 33.7 kB / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.704e-05/0.7962, allocations: 96.2 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.7962, allocations: 23.7 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.7963, allocations: 65.67 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.7965, allocations: 326.8 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.7966, allocations: 87.91 kB / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.7969, allocations: 143.4 kB / 1.214 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.7971, allocations: 235 kB / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7972, allocations: 0 / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005716/0.7977, allocations: 382.4 kB / 1.214 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.7978, allocations: 98.97 kB / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.7978, allocations: 0 / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.7978, allocations: 4.562 kB / 1.215 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.501e-05/0.7979, allocations: 12 kB / 1.215 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.7979, allocations: 3.984 kB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.7983, allocations: 79.83 kB / 1.215 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.7984, allocations: 23.92 kB / 1.215 GB, free: 6.855 MB / 0.9356 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.00013/0.7985, allocations: 133.7 kB / 1.215 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.7986, allocations: 7.906 kB / 1.215 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.7986, allocations: 12.38 kB / 1.215 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.7986, allocations: 3.984 kB / 1.215 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7986, allocations: 0 / 1.215 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.7986, allocations: 0 / 1.215 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.7988, allocations: 193.5 kB / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.7988, allocations: 4 kB / 1.215 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.415e-05/0.7988, allocations: 7.984 kB / 1.215 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.7988, allocations: 0 / 1.215 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.7988, allocations: 12 kB / 1.215 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.7988, allocations: 0 / 1.215 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7988, allocations: 0 / 1.215 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.799, allocations: 136.9 kB / 1.215 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.7991, allocations: 85 kB / 1.215 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.7991, allocations: 8 kB / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.32e-05/0.7991, allocations: 0 / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.7992, allocations: 7.984 kB / 1.215 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.7992, allocations: 12 kB / 1.215 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.722e-05/0.7993, allocations: 101.7 kB / 1.215 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7993, allocations: 0 / 1.215 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002678/0.7995, allocations: 40 kB / 1.215 GB, free: 6.008 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: 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.0001675/0.7997, allocations: 103.2 kB / 1.216 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000469/0.8002, allocations: 370.3 kB / 1.216 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.8002, allocations: 4.062 kB / 1.216 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.952e-05/0.8003, allocations: 43.86 kB / 1.216 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.8005, allocations: 24.2 kB / 1.216 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.801, allocations: 224.5 kB / 1.216 GB, free: 5.172 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.8012, allocations: 0.6963 MB / 1.217 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.8013, allocations: 11.44 kB / 1.217 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of SimCode: time 1.9e-07/0.8013, allocations: 0 / 1.217 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of Templates: time 0.003884/0.8052, allocations: 1.877 MB / 1.219 GB, free: 2.582 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches