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.001506/0.001506, allocations: 112 kB / 16.41 MB, free: 6.484 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.001604/0.001604, allocations: 183 kB / 17.34 MB, free: 5.762 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.17 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.311/2.311, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.09 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8911/0.8924, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001769/0.8942, allocations: 0.7031 MB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.8957, allocations: 1.271 MB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.948e-05/0.8957, allocations: 1.188 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.818e-05/0.8958, allocations: 4.594 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.369e-05/0.8959, allocations: 17.58 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000791/0.8967, allocations: 319 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003401/0.897, allocations: 275.2 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.8971, allocations: 18.27 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.8973, allocations: 100.1 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.8974, allocations: 92.84 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.876e-05/0.8975, allocations: 22.75 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.819e-05/0.8976, allocations: 36.05 kB / 1.091 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.357e-05/0.8976, allocations: 10.62 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.8978, allocations: 87.81 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.8981, allocations: 217.2 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8981, allocations: 3.938 kB / 1.092 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.445e-06/0.8981, allocations: 4.625 kB / 1.092 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.8981, allocations: 0 / 1.092 GB, free: 3.648 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.0005327/0.8986, allocations: 0.4893 MB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.8987, allocations: 9.344 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.142e-05/0.8988, allocations: 19.69 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.607e-05/0.8988, allocations: 174.9 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.8989, allocations: 6.516 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.8989, allocations: 14.2 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.8991, allocations: 56.97 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.8991, allocations: 3.938 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.8991, allocations: 1.672 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.8991, allocations: 5.797 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.938e-05/0.8992, allocations: 24.97 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005161/0.8997, allocations: 408.1 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.405e-05/0.8998, allocations: 30 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.8998, allocations: 18.83 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.8998, allocations: 1.547 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.9, allocations: 116.6 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.9, allocations: 1.656 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0002934/0.9003, allocations: 135.7 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.9004, allocations: 53.94 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.721e-05/0.9005, allocations: 136.8 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.9005, allocations: 35.08 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.9006, allocations: 97.66 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.9006, allocations: 20.83 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.9007, allocations: 67.23 kB / 1.094 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.123e-05/0.9008, allocations: 324.7 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.901, allocations: 87.36 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.9012, allocations: 142.1 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.9014, allocations: 240.1 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9015, allocations: 0.9375 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006369/0.9021, allocations: 383.8 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.997e-05/0.9022, allocations: 98.45 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.9022, allocations: 1.719 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.9022, allocations: 2.219 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.624e-05/0.9022, allocations: 4.656 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.9022, allocations: 2.781 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005219/0.9028, allocations: 88.22 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.9028, allocations: 17.22 kB / 1.095 GB, free: 1.074 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 9.99e-05/0.9029, allocations: 134.9 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.903, allocations: 8.609 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.903, allocations: 11.12 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.903, allocations: 5.469 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.903, allocations: 0.8125 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.903, allocations: 0.75 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.9032, allocations: 188.3 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.9032, allocations: 3.984 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.271e-05/0.9032, allocations: 3.281 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.9032, allocations: 0.7188 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.9032, allocations: 11.2 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.9032, allocations: 0.75 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.9032, allocations: 0 / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.9034, allocations: 141.9 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.591e-05/0.9035, allocations: 88.38 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.9035, allocations: 2.375 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.64e-05/0.9035, allocations: 6.281 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.9036, allocations: 6.203 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.9036, allocations: 4.453 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.797e-05/0.9036, allocations: 99.95 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9036, allocations: 3.938 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002818/0.9039, allocations: 47.38 kB / 1.096 GB, free: 428 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.0001586/0.9041, allocations: 109.4 kB / 1.096 GB, free: 336 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004747/0.9046, allocations: 362.4 kB / 1.096 GB, free: 68 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9046, allocations: 3.938 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.128e-05/0.9047, allocations: 45.8 kB / 1.096 GB, free: 48 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.905, allocations: 32.73 kB / 1.096 GB, free: 32 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004868/0.9055, allocations: 220.6 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.9057, allocations: 0.6959 MB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.177e-05/0.9058, allocations: 13.67 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9058, allocations: 0 / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of Templates: time 0.004656/0.9104, allocations: 1.886 MB / 1.099 GB, free: 14.94 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