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.001553/0.001553, allocations: 101.6 kB / 15.98 MB, free: 6.352 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.001845/0.001845, allocations: 193.8 kB / 16.9 MB, free: 6.191 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.33/1.33, allocations: 222.9 MB / 240.6 MB, free: 15.37 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.195/2.195, allocations: 390.2 MB / 0.665 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 64.39 kB / 0.8127 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2687, allocations: 140.4 MB / 0.9498 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00195/0.2707, allocations: 0.7612 MB / 0.9505 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2722, allocations: 1.265 MB / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.806e-05/0.2723, allocations: 0 / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.2723, allocations: 3.938 kB / 0.9518 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.721e-05/0.2724, allocations: 15.91 kB / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008355/0.2733, allocations: 286.4 kB / 0.9521 GB, free: 6.852 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.2736, allocations: 271.5 kB / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.96e-05/0.2737, allocations: 20.19 kB / 0.9523 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.2738, allocations: 95.86 kB / 0.9524 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.274, allocations: 79.77 kB / 0.9525 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.274, allocations: 23.94 kB / 0.9525 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.825e-05/0.2741, allocations: 35.98 kB / 0.9526 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.422e-05/0.2742, allocations: 19.92 kB / 0.9526 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.735e-05/0.2743, allocations: 79.8 kB / 0.9527 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.2745, allocations: 155.9 kB / 0.9528 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2745, allocations: 4 kB / 0.9528 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2745, allocations: 0 / 0.9528 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.2745, allocations: 0 / 0.9528 GB, free: 6.078 MB / 0.7325 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.0005785/0.2751, allocations: 496.3 kB / 0.9533 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.2751, allocations: 12.03 kB / 0.9533 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.2752, allocations: 16.78 kB / 0.9533 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.2753, allocations: 176.3 kB / 0.9535 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.2754, allocations: 12.31 kB / 0.9535 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.2754, allocations: 16.38 kB / 0.9535 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.2755, allocations: 58.23 kB / 0.9536 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2756, allocations: 3.938 kB / 0.9536 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.2756, allocations: 3.984 kB / 0.9536 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2756, allocations: 4 kB / 0.9536 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.956e-05/0.2756, allocations: 16 kB / 0.9536 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005347/0.2762, allocations: 420.4 kB / 0.954 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/0.2763, allocations: 26.58 kB / 0.954 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.2763, allocations: 28.94 kB / 0.954 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.2763, allocations: 4 kB / 0.954 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001592/0.2765, allocations: 103.2 kB / 0.9541 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.2765, allocations: 0 / 0.9541 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003094/0.2768, allocations: 137.5 kB / 0.9543 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.2768, allocations: 59.48 kB / 0.9543 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.277, allocations: 132.6 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.277, allocations: 30.08 kB / 0.9545 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.2771, allocations: 112 kB / 0.9546 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.2771, allocations: 11.81 kB / 0.9546 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.2773, allocations: 65.67 kB / 0.9547 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.2774, allocations: 330.7 kB / 0.955 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.2776, allocations: 87.95 kB / 0.9551 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.2778, allocations: 143.1 kB / 0.9552 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.2781, allocations: 230.9 kB / 0.9554 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2781, allocations: 4 kB / 0.9554 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006035/0.2787, allocations: 378.4 kB / 0.9558 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.255e-05/0.2788, allocations: 97.09 kB / 0.9559 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2788, allocations: 3.984 kB / 0.9559 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2788, allocations: 4 kB / 0.9559 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.315e-05/0.2788, allocations: 11.94 kB / 0.9559 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2789, allocations: 0 / 0.9559 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/0.2794, allocations: 87.92 kB / 0.956 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.2794, allocations: 19.98 kB / 0.956 GB, free: 2.473 MB / 0.7325 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.0001255/0.2796, allocations: 133.2 kB / 0.9561 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.2796, allocations: 7.906 kB / 0.9561 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.902e-05/0.2796, allocations: 16.38 kB / 0.9562 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2796, allocations: 3.938 kB / 0.9562 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2796, allocations: 0 / 0.9562 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2797, allocations: 7.969 kB / 0.9562 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.2798, allocations: 189.6 kB / 0.9563 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2798, allocations: 4 kB / 0.9564 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.138e-05/0.2798, allocations: 0 / 0.9564 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2798, allocations: 0 / 0.9564 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2799, allocations: 7.984 kB / 0.9564 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2799, allocations: 0 / 0.9564 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2799, allocations: 0 / 0.9564 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/0.28, allocations: 140.9 kB / 0.9565 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.2801, allocations: 88.94 kB / 0.9566 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.2801, allocations: 8.094 kB / 0.9566 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.391e-05/0.2802, allocations: 3.938 kB / 0.9566 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.2802, allocations: 11.98 kB / 0.9566 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.2802, allocations: 4 kB / 0.9566 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.591e-05/0.2803, allocations: 95.27 kB / 0.9567 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2803, allocations: 0 / 0.9567 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002748/0.2806, allocations: 44 kB / 0.9567 GB, free: 1.629 MB / 0.7325 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.000151/0.2807, allocations: 119.2 kB / 0.9569 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004688/0.2812, allocations: 365.9 kB / 0.9572 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2812, allocations: 0 / 0.9572 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.187e-05/0.2813, allocations: 43.97 kB / 0.9572 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2815, allocations: 28.36 kB / 0.9573 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.282, allocations: 231.2 kB / 0.9575 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2823, allocations: 0.7 MB / 0.9582 GB, free: 52 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.2823, allocations: 19.44 kB / 0.9582 GB, free: 32 kB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.2823, allocations: 0 / 0.9582 GB, free: 32 kB / 0.7325 GB Notification: Performance of Templates: time 0.003639/0.2859, allocations: 1.874 MB / 0.96 GB, free: 14.17 MB / 0.7481 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