Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001298/0.001298, allocations: 189.3 kB / 16.13 MB, free: 6.656 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.031/3.031, allocations: 472.6 MB / 0.7447 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.45 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3505, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002183/0.3528, allocations: 0.845 MB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3543, allocations: 1.174 MB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.3544, allocations: 0 / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.022e-05/0.3544, allocations: 3.938 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.306e-05/0.3545, allocations: 7.938 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004482/0.355, allocations: 115.2 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.3551, allocations: 115.7 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3552, allocations: 23.97 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.345e-05/0.3553, allocations: 47.84 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.3554, allocations: 39.88 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.3555, allocations: 8 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.462e-05/0.3555, allocations: 19.98 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.3556, allocations: 15.92 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.396e-05/0.3557, allocations: 39.84 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.3558, allocations: 111.7 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3559, allocations: 4 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3559, allocations: 4 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3559, allocations: 0 / 1.07 GB, free: 8.332 MB / 0.8262 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.0006664/0.3565, allocations: 425.2 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3566, allocations: 8.031 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.3566, allocations: 8.844 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.3568, allocations: 184.2 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3568, allocations: 4.375 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.3568, allocations: 8.375 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.3571, allocations: 86.14 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3571, allocations: 192 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.3572, allocations: 7.922 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.3572, allocations: 0 / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.3575, allocations: 67.92 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.358, allocations: 328.7 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.3582, allocations: 58.53 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3584, allocations: 44.92 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.3584, allocations: 0 / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.3587, allocations: 95.28 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.3587, allocations: 0 / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006511/0.3594, allocations: 173.5 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.3594, allocations: 55.34 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3596, allocations: 118.1 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.3596, allocations: 33.7 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.3597, allocations: 100.1 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.3597, allocations: 15.75 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.3598, allocations: 37.7 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3599, allocations: 322.8 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.3602, allocations: 55.95 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.3604, allocations: 86.45 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.3608, allocations: 144.2 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3608, allocations: 0 / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005696/0.3614, allocations: 211.2 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.3614, allocations: 43.56 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3615, allocations: 4 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3615, allocations: 0 / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3616, allocations: 19.92 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3616, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.3619, allocations: 43.94 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.3619, allocations: 8 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001269/0.3621, allocations: 117.8 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.3621, allocations: 11.89 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.3621, allocations: 8.375 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3621, allocations: 3.984 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3621, allocations: 0 / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3622, allocations: 96 / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.3623, allocations: 189.5 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3623, allocations: 0 / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.3625, allocations: 23.97 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3625, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.3625, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.3625, allocations: 4 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3625, allocations: 0 / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004264/0.3629, allocations: 157.2 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.363, allocations: 81.02 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.363, allocations: 0 / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.212e-05/0.3631, allocations: 23.97 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.3632, allocations: 7.938 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.3632, allocations: 0 / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.864e-05/0.3632, allocations: 99.02 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3632, allocations: 0 / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002267/0.3635, allocations: 31.98 kB / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002094/0.3637, allocations: 99.25 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005029/0.3642, allocations: 191.2 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3642, allocations: 0 / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3644, allocations: 52.08 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.3646, allocations: 18.41 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.3651, allocations: 175.8 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.3653, allocations: 0.6848 MB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.253e-05/0.3654, allocations: 7.984 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.325e-05/0.3654, allocations: 15.44 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.3654, allocations: 0 / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of Templates: time 0.004402/0.3698, allocations: 1.396 MB / 1.076 GB, free: 1.801 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1)