Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.491/2.491, allocations: 391.2 MB / 407 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 197 kB / 499.1 MB, free: 4.637 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.682/1.682, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 114.7 kB / 0.9329 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 49.89 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3074, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002731/0.3102, allocations: 0.882 MB / 1.219 GB, free: 116.3 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001906/0.3121, allocations: 1.324 MB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.3123, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 6.411e-05/0.3124, allocations: 7.875 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.3125, allocations: 23.84 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.3135, allocations: 290.8 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.3139, allocations: 255.5 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.3141, allocations: 37.44 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.3144, allocations: 111.7 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.3145, allocations: 91.69 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 8.053e-05/0.3146, allocations: 16 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.3147, allocations: 27.98 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.3148, allocations: 19.92 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3149, allocations: 95.61 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.3152, allocations: 261.4 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3153, allocations: 0 / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3153, allocations: 0 / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3153, allocations: 4 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006615/0.3159, allocations: 0.5196 MB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.316, allocations: 11.98 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.3161, allocations: 20.84 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.3162, allocations: 185.6 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.3162, allocations: 12.38 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.3163, allocations: 23.94 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.3165, allocations: 85.61 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3165, allocations: 4 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3165, allocations: 11.98 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3166, allocations: 0 / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.3167, allocations: 51.92 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.3173, allocations: 488.2 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.3176, allocations: 78.62 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.88e-05/0.3176, allocations: 32.78 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.3176, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.3178, allocations: 117.2 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.3178, allocations: 3.938 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of matching and sorting (n=14): time 0.0003238/0.3182, allocations: 169.5 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.3182, allocations: 59.41 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3183, allocations: 164.7 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3184, allocations: 37.7 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.3184, allocations: 108 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.3185, allocations: 27.69 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3186, allocations: 73.67 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/0.3187, allocations: 322.8 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.3189, allocations: 103.9 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.319, allocations: 144.3 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.3193, allocations: 249.4 kB / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3194, allocations: 0 / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005432/0.3199, allocations: 398.3 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 7.153e-05/0.32, allocations: 105.8 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.32, allocations: 7.938 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.32, allocations: 4.188 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.977e-05/0.3201, allocations: 19.94 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.3201, allocations: 0 / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.3206, allocations: 91.66 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.3206, allocations: 23.98 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001189/0.3208, allocations: 135.2 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.3208, allocations: 15.84 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.487e-05/0.3208, allocations: 16.83 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3208, allocations: 4 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3208, allocations: 0 / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3209, allocations: 0 / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.321, allocations: 221.4 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.321, allocations: 0 / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.955e-05/0.3211, allocations: 11.98 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3211, allocations: 7.938 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3211, allocations: 4 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3211, allocations: 4 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3211, allocations: 3.938 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.3215, allocations: 0.7503 MB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.3216, allocations: 92.91 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.3216, allocations: 8 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.02e-05/0.3216, allocations: 4 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.3217, allocations: 11.98 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.3217, allocations: 8 kB / 1.226 GB, free: 108.3 MB / 0.823 GB Notification: Performance of sorting global known variables: time 6.314e-05/0.3218, allocations: 120.7 kB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of sort global known variables: time 1e-07/0.3218, allocations: 0 / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003563/0.3221, allocations: 48 kB / 1.226 GB, free: 108.2 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001699/0.3223, allocations: 114.5 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0004158/0.3227, allocations: 386 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3227, allocations: 0 / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.926e-05/0.3228, allocations: 47.98 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.3231, allocations: 25 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.3237, allocations: 431.1 kB / 1.227 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.3238, allocations: 0.7165 MB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 4.052e-05/0.3239, allocations: 12.64 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.496e-05/0.3239, allocations: 15.44 kB / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.3239, allocations: 0 / 1.228 GB, free: 106.4 MB / 0.823 GB Notification: Performance of Templates: time 0.005416/0.3293, allocations: 2.771 MB / 1.231 GB, free: 103.6 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1)