Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.009419/0.009419, allocations: 99.62 kB / 15.73 MB, free: 6.445 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.001569/0.001569, allocations: 194.3 kB / 16.67 MB, free: 6.352 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.776/2.776, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 67.89 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3396, allocations: 159.1 MB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002645/0.3423, allocations: 0.6895 MB / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002075/0.3444, allocations: 1.27 MB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.3444, allocations: 0 / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.298e-05/0.3445, allocations: 3.938 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.3446, allocations: 23.8 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.3457, allocations: 317.4 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005272/0.3462, allocations: 259.5 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.3464, allocations: 16.16 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.3466, allocations: 99.86 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.3469, allocations: 91.73 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.83e-05/0.347, allocations: 24 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.3472, allocations: 39.92 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.072e-05/0.3472, allocations: 15.92 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.3474, allocations: 83.8 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004366/0.3478, allocations: 211.4 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3478, allocations: 3.938 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.355e-06/0.3478, allocations: 4 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.289e-05/0.3478, allocations: 4 kB / 1.224 GB, free: 10.67 MB / 0.9825 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.001128/0.3489, allocations: 0.4884 MB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.902e-05/0.349, allocations: 8.031 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3492, allocations: 16.89 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.3494, allocations: 176.3 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.3495, allocations: 12.36 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.871e-05/0.3495, allocations: 20.38 kB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.3497, allocations: 54.17 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3497, allocations: 11.88 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.3498, allocations: 4 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3498, allocations: 4 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.591e-05/0.3498, allocations: 15.98 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007576/0.3506, allocations: 416.5 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.068e-05/0.3507, allocations: 30.52 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.898e-05/0.3507, allocations: 16.94 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.3507, allocations: 8 kB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.351, allocations: 95.34 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.351, allocations: 0 / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003488/0.3513, allocations: 133.6 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.3514, allocations: 59.39 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.3515, allocations: 144.8 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.3516, allocations: 37.7 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.3517, allocations: 96.2 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.3517, allocations: 23.84 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3518, allocations: 65.67 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3519, allocations: 326.8 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.3521, allocations: 83.95 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.3523, allocations: 138 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.3526, allocations: 238.8 kB / 1.226 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3526, allocations: 4 kB / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005843/0.3532, allocations: 386.5 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.887e-05/0.3533, allocations: 97.09 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3533, allocations: 3.938 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3533, allocations: 4 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.679e-05/0.3533, allocations: 8 kB / 1.227 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3533, allocations: 7.922 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/0.3538, allocations: 84.36 kB / 1.227 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.3538, allocations: 19.98 kB / 1.227 GB, free: 7.059 MB / 0.9825 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.0001242/0.3539, allocations: 126.3 kB / 1.227 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.46e-05/0.354, allocations: 7.953 kB / 1.227 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.354, allocations: 20.31 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.354, allocations: 3.984 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.354, allocations: 0 / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.354, allocations: 0 / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.3542, allocations: 185.6 kB / 1.227 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3542, allocations: 0 / 1.227 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.356e-05/0.3542, allocations: 11.94 kB / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3542, allocations: 3.984 kB / 1.227 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.3542, allocations: 4 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3542, allocations: 0 / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3542, allocations: 4.078 kB / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.3544, allocations: 144.9 kB / 1.227 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.3544, allocations: 85.05 kB / 1.227 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.3545, allocations: 4 kB / 1.227 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.135e-05/0.3545, allocations: 4 kB / 1.227 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.3545, allocations: 7.984 kB / 1.227 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.3545, allocations: 11.98 kB / 1.227 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.869e-05/0.3546, allocations: 95.27 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3546, allocations: 4 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002531/0.3548, allocations: 43.94 kB / 1.228 GB, free: 6.207 MB / 0.9825 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.0001996/0.355, allocations: 103.2 kB / 1.228 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004563/0.3555, allocations: 337.9 kB / 1.228 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3555, allocations: 0 / 1.228 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.439e-05/0.3556, allocations: 31.97 kB / 1.228 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3558, allocations: 28.58 kB / 1.228 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/0.3562, allocations: 194.6 kB / 1.228 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.3565, allocations: 0.6924 MB / 1.229 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.3565, allocations: 16.36 kB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.404e-05/0.3566, allocations: 15.44 kB / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.3566, allocations: 0 / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of Templates: time 0.005688/0.3623, allocations: 2.628 MB / 1.232 GB, free: 2.109 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches