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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001149/0.001149, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001403/0.001403, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.3 MB / 240 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.673/2.673, allocations: 390.9 MB / 0.666 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 12 kB / 0.8154 GB, free: 13.61 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7975/0.7979, allocations: 142.4 MB / 0.9544 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0008938/0.7989, allocations: 420.9 kB / 0.9548 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.8003, allocations: 1.243 MB / 0.9561 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.044e-05/0.8003, allocations: 1.156 kB / 0.9561 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.8004, allocations: 3.984 kB / 0.9561 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.06e-05/0.8005, allocations: 17.92 kB / 0.9561 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007423/0.8012, allocations: 282 kB / 0.9564 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.8014, allocations: 199.4 kB / 0.9565 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.8015, allocations: 10.88 kB / 0.9566 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.8017, allocations: 90 kB / 0.9566 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.8018, allocations: 71.67 kB / 0.9567 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.8018, allocations: 13.41 kB / 0.9567 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.425e-05/0.8019, allocations: 30.11 kB / 0.9568 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.802, allocations: 12.59 kB / 0.9568 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.491e-05/0.802, allocations: 41.98 kB / 0.9568 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.8022, allocations: 151.7 kB / 0.9569 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.8022, allocations: 1.375 kB / 0.9569 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.452e-06/0.8022, allocations: 0 / 0.9569 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.8022, allocations: 0 / 0.9569 GB, free: 6.094 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.0004086/0.8026, allocations: 456.1 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.8027, allocations: 9.25 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.8028, allocations: 18.3 kB / 0.9574 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.251e-05/0.8029, allocations: 181.5 kB / 0.9576 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.394e-05/0.8029, allocations: 10.05 kB / 0.9576 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.8029, allocations: 17.16 kB / 0.9576 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.8031, allocations: 56.12 kB / 0.9577 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.8031, allocations: 0 / 0.9577 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.8031, allocations: 4 kB / 0.9577 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.8031, allocations: 4.969 kB / 0.9577 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.737e-05/0.8032, allocations: 23.66 kB / 0.9577 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.8036, allocations: 418.5 kB / 0.9581 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.249e-05/0.8037, allocations: 27.52 kB / 0.9581 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.364e-05/0.8037, allocations: 21 kB / 0.9581 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.8037, allocations: 0 / 0.9581 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.8039, allocations: 112.9 kB / 0.9582 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.8039, allocations: 4 kB / 0.9583 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002871/0.8042, allocations: 133.3 kB / 0.9584 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.8043, allocations: 57.2 kB / 0.9584 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.938e-05/0.8044, allocations: 135.9 kB / 0.9586 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.8044, allocations: 35.08 kB / 0.9586 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.305e-05/0.8045, allocations: 95.2 kB / 0.9587 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.8045, allocations: 19.39 kB / 0.9587 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.8045, allocations: 9.781 kB / 0.9587 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.856e-05/0.8046, allocations: 321.2 kB / 0.959 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.8047, allocations: 88.88 kB / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.8049, allocations: 135.4 kB / 0.9592 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.8051, allocations: 173.1 kB / 0.9594 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.8051, allocations: 1.375 kB / 0.9594 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005337/0.8056, allocations: 378.9 kB / 0.9598 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.8057, allocations: 101.5 kB / 0.9599 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.8057, allocations: 1.375 kB / 0.9599 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.8057, allocations: 2.75 kB / 0.9599 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.584e-05/0.8058, allocations: 10.88 kB / 0.9599 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.8058, allocations: 6.75 kB / 0.9599 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/0.8063, allocations: 115.4 kB / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.172e-05/0.8063, allocations: 21.33 kB / 0.96 GB, free: 3.34 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.93e-05/0.8064, allocations: 122.1 kB / 0.9601 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.8065, allocations: 16.27 kB / 0.9601 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.8065, allocations: 10.19 kB / 0.9602 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.8065, allocations: 1.031 kB / 0.9602 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.8065, allocations: 12.86 kB / 0.9602 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.8065, allocations: 0 / 0.9602 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.8067, allocations: 186.4 kB / 0.9603 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.8067, allocations: 0 / 0.9603 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.8067, allocations: 2.562 kB / 0.9603 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.8067, allocations: 0 / 0.9603 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.8067, allocations: 10.31 kB / 0.9604 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.8067, allocations: 8 kB / 0.9604 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8067, allocations: 0 / 0.9604 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.8069, allocations: 131.8 kB / 0.9605 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.56e-05/0.8069, allocations: 87.88 kB / 0.9606 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.8069, allocations: 5.312 kB / 0.9606 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.214e-05/0.807, allocations: 3.953 kB / 0.9606 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.807, allocations: 8.391 kB / 0.9606 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.807, allocations: 7.094 kB / 0.9606 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.104e-05/0.8071, allocations: 100.5 kB / 0.9607 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8071, allocations: 1.094 kB / 0.9607 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002641/0.8074, allocations: 42.22 kB / 0.9607 GB, free: 2.656 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001523/0.8075, allocations: 107.8 kB / 0.9608 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004304/0.8079, allocations: 366.1 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.808, allocations: 4.312 kB / 0.9612 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.894e-05/0.808, allocations: 46.94 kB / 0.9612 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.8083, allocations: 19.42 kB / 0.9613 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003487/0.8087, allocations: 210.7 kB / 0.9615 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.8088, allocations: 0.6957 MB / 0.9621 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.22e-05/0.8088, allocations: 10.48 kB / 0.9621 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.067e-05/0.8088, allocations: 13.03 kB / 0.9622 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8089, allocations: 0 / 0.9622 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of Templates: time 0.004652/0.8135, allocations: 2.402 MB / 0.9645 GB, free: 104 kB / 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