Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001095/0.001095, allocations: 98.88 kB / 16.02 MB, free: 76 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.001255/0.001255, allocations: 187.5 kB / 16.92 MB, free: 6.746 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.462/1.462, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.624/2.624, allocations: 437.8 MB / 0.7128 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003513, allocations: 12.12 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6011/0.6015, allocations: 153.8 MB / 1.024 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0008476/0.6024, allocations: 448.9 kB / 1.024 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.6039, allocations: 1.28 MB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.604, allocations: 0 / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.012e-05/0.604, allocations: 3.938 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.282e-05/0.6041, allocations: 19.84 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007493/0.6048, allocations: 290.8 kB / 1.026 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.6051, allocations: 219.5 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.6052, allocations: 20.16 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.6053, allocations: 87.86 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.6054, allocations: 67.78 kB / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.6055, allocations: 12 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.056e-05/0.6055, allocations: 27.92 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.485e-05/0.6056, allocations: 19.92 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.6057, allocations: 97.52 kB / 1.026 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.6059, allocations: 149.6 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.6059, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.058e-06/0.6059, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.6059, allocations: 3.938 kB / 1.026 GB, free: 13.32 MB / 0.7794 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.000487/0.6064, allocations: 456.4 kB / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.6065, allocations: 12.03 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.6065, allocations: 12.84 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.6067, allocations: 182.1 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.6067, allocations: 12.38 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.6067, allocations: 16.38 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.6069, allocations: 58.22 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.6069, allocations: 3.938 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.6069, allocations: 11.92 kB / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.6069, allocations: 0 / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.187e-05/0.607, allocations: 16 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.6075, allocations: 424.5 kB / 1.028 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.746e-05/0.6076, allocations: 30.58 kB / 1.028 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.6076, allocations: 28.88 kB / 1.028 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-06/0.6076, allocations: 0 / 1.028 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.6078, allocations: 95.34 kB / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.6078, allocations: 0 / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0002918/0.6081, allocations: 141.5 kB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.6082, allocations: 55.41 kB / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.906e-05/0.6083, allocations: 137.7 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.6083, allocations: 33.7 kB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.6084, allocations: 96.12 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/0.6084, allocations: 23.78 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.6085, allocations: 33.7 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6086, allocations: 326.7 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.6088, allocations: 91.95 kB / 1.029 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.609, allocations: 135.2 kB / 1.029 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.6093, allocations: 235 kB / 1.029 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.6093, allocations: 0 / 1.029 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005774/0.6099, allocations: 374.4 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.322e-05/0.61, allocations: 101.1 kB / 1.029 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.61, allocations: 4.562 kB / 1.029 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.61, allocations: 4 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.363e-05/0.61, allocations: 11.92 kB / 1.029 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.61, allocations: 4 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/0.6106, allocations: 121.9 kB / 1.029 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.6107, allocations: 15.98 kB / 1.03 GB, free: 9.758 MB / 0.7794 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.0001126/0.6108, allocations: 142.2 kB / 1.03 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.5e-05/0.6108, allocations: 7.906 kB / 1.03 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.6108, allocations: 12.38 kB / 1.03 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.6109, allocations: 0 / 1.03 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.6109, allocations: 0 / 1.03 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.6109, allocations: 0 / 1.03 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.611, allocations: 193.5 kB / 1.03 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.611, allocations: 0 / 1.03 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.862e-05/0.611, allocations: 4 kB / 1.03 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.6111, allocations: 4 kB / 1.03 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.6111, allocations: 0 / 1.03 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.6111, allocations: 0 / 1.03 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6111, allocations: 7.938 kB / 1.03 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.6113, allocations: 136.9 kB / 1.03 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.6113, allocations: 85.02 kB / 1.03 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.6113, allocations: 3.938 kB / 1.03 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.656e-05/0.6114, allocations: 3.984 kB / 1.03 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/0.6114, allocations: 12 kB / 1.03 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.6114, allocations: 7.984 kB / 1.03 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.197e-05/0.6115, allocations: 99.27 kB / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6115, allocations: 0 / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002569/0.6117, allocations: 40 kB / 1.03 GB, free: 8.918 MB / 0.7794 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.0001381/0.6119, allocations: 107.2 kB / 1.03 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004502/0.6123, allocations: 366.3 kB / 1.031 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6124, allocations: 4.062 kB / 1.031 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.598e-05/0.6124, allocations: 39.98 kB / 1.031 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.6127, allocations: 28.19 kB / 1.031 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003624/0.6131, allocations: 237.1 kB / 1.031 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.6133, allocations: 0.6965 MB / 1.032 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.6134, allocations: 19.42 kB / 1.032 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6134, allocations: 0 / 1.032 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of Templates: time 0.003339/0.6167, allocations: 1.859 MB / 1.033 GB, free: 5.492 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches