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.001418/0.001418, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001884/0.001884, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.548/2.548, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002493/0.002493, allocations: 64.05 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8722/0.8747, allocations: 140.4 MB / 0.9491 GB, free: 9.414 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001736/0.8765, allocations: 0.7593 MB / 0.9498 GB, free: 8.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001135/0.8777, allocations: 1.263 MB / 0.9511 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.254e-05/0.8777, allocations: 1.344 kB / 0.9511 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/0.8777, allocations: 3.938 kB / 0.9511 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.634e-05/0.8778, allocations: 13.25 kB / 0.9511 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000654/0.8785, allocations: 293.9 kB / 0.9514 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.8788, allocations: 274.5 kB / 0.9516 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.216e-05/0.8789, allocations: 22.44 kB / 0.9517 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.879, allocations: 100.5 kB / 0.9518 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.8791, allocations: 74.67 kB / 0.9518 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.8791, allocations: 23 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.156e-05/0.8792, allocations: 36.58 kB / 0.9519 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.958e-05/0.8792, allocations: 16.8 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.498e-05/0.8793, allocations: 83.67 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.8795, allocations: 215.2 kB / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.8795, allocations: 0 / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8795, allocations: 1.344 kB / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.8795, allocations: 0 / 0.9522 GB, free: 7.109 MB / 0.7169 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.0004313/0.88, allocations: 0.4898 MB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.88, allocations: 9.156 kB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.8801, allocations: 19.06 kB / 0.9527 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.132e-05/0.8802, allocations: 177.5 kB / 0.9529 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.8802, allocations: 9.891 kB / 0.9529 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.8802, allocations: 13.75 kB / 0.9529 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.8803, allocations: 55.52 kB / 0.9529 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.8804, allocations: 3.938 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.8804, allocations: 1.312 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.8804, allocations: 5.312 kB / 0.9529 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.745e-05/0.8804, allocations: 22.89 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004165/0.8809, allocations: 422 kB / 0.9534 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.408e-05/0.8809, allocations: 32.33 kB / 0.9534 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.881, allocations: 23.5 kB / 0.9534 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-06/0.881, allocations: 5.344 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/0.8811, allocations: 101.5 kB / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.8811, allocations: 0 / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002732/0.8814, allocations: 133.9 kB / 0.9537 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.8815, allocations: 58.06 kB / 0.9537 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.953e-05/0.8815, allocations: 138.4 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.8816, allocations: 34.7 kB / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.084e-05/0.8816, allocations: 103.2 kB / 0.954 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.8817, allocations: 19.95 kB / 0.954 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.8818, allocations: 66.48 kB / 0.9541 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.11e-05/0.8818, allocations: 325.1 kB / 0.9544 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.882, allocations: 85.14 kB / 0.9544 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.8822, allocations: 141.2 kB / 0.9546 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.8824, allocations: 228.4 kB / 0.9548 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.8824, allocations: 5.312 kB / 0.9548 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005157/0.8829, allocations: 378.2 kB / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.883, allocations: 95.59 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.883, allocations: 1.469 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.883, allocations: 2.906 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.178e-05/0.8831, allocations: 6.531 kB / 0.9553 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.8831, allocations: 7.484 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.8836, allocations: 88.16 kB / 0.9554 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.013e-05/0.8836, allocations: 16.08 kB / 0.9554 GB, free: 4.238 MB / 0.7169 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 8.483e-05/0.8837, allocations: 138.2 kB / 0.9555 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.8837, allocations: 12.31 kB / 0.9555 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.8838, allocations: 13.66 kB / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.8838, allocations: 1.344 kB / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.8838, allocations: 0 / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.8838, allocations: 1.312 kB / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.057e-05/0.8839, allocations: 189.8 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.8839, allocations: 0 / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.071e-05/0.8839, allocations: 1.75 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8839, allocations: 3.188 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.8839, allocations: 4 kB / 0.9557 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8839, allocations: 0 / 0.9557 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.8839, allocations: 3.938 kB / 0.9557 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.8841, allocations: 144.5 kB / 0.9559 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.939e-05/0.8841, allocations: 83.42 kB / 0.9559 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.8841, allocations: 4.938 kB / 0.9559 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.465e-05/0.8841, allocations: 13 kB / 0.956 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.8842, allocations: 3.938 kB / 0.956 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.8842, allocations: 7.203 kB / 0.956 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.625e-05/0.8842, allocations: 100.9 kB / 0.9561 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8842, allocations: 5.406 kB / 0.9561 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002531/0.8845, allocations: 43.28 kB / 0.9561 GB, free: 3.539 MB / 0.7169 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.0001154/0.8846, allocations: 112.7 kB / 0.9562 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003791/0.885, allocations: 367.7 kB / 0.9566 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.885, allocations: 0 / 0.9566 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.004e-05/0.8851, allocations: 40.19 kB / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.8853, allocations: 33.66 kB / 0.9566 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.8856, allocations: 210.8 kB / 0.9568 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.735e-05/0.8857, allocations: 0.7001 MB / 0.9575 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.854e-05/0.8858, allocations: 5.844 kB / 0.9575 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.8858, allocations: 12.59 kB / 0.9575 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8858, allocations: 0 / 0.9575 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of Templates: time 0.0048/0.8906, allocations: 2.604 MB / 0.9601 GB, free: 0.8867 MB / 0.7169 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