Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.838/1.838, allocations: 306.1 MB / 321.4 MB, free: 10.75 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 179 kB / 393.1 MB, free: 4.062 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 225.7 MB / 0.6743 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008644/0.0008646, allocations: 94.22 kB / 0.7935 GB, free: 39.93 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004109/0.0004113, allocations: 13.03 kB / 0.9225 GB, free: 8.637 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7413/0.7417, allocations: 121.3 MB / 1.041 GB, free: 57.83 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001459/0.7433, allocations: 0.508 MB / 1.041 GB, free: 57.57 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.00211/0.7454, allocations: 1.278 MB / 1.043 GB, free: 56.56 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.18e-05/0.7455, allocations: 1.375 kB / 1.043 GB, free: 56.56 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.7455, allocations: 3.938 kB / 1.043 GB, free: 56.56 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.7456, allocations: 9.562 kB / 1.043 GB, free: 56.55 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005688/0.7462, allocations: 123.9 kB / 1.043 GB, free: 56.49 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.7464, allocations: 119.5 kB / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.7465, allocations: 12.3 kB / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.7467, allocations: 51.94 kB / 1.043 GB, free: 56.42 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.7468, allocations: 39.91 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.7469, allocations: 4.625 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.747, allocations: 23.77 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 3.09e-05/0.747, allocations: 3.297 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.7471, allocations: 70.28 kB / 1.043 GB, free: 56.34 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.7474, allocations: 113.1 kB / 1.043 GB, free: 56.31 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.7475, allocations: 0 / 1.043 GB, free: 56.31 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.337e-06/0.7475, allocations: 0.6875 kB / 1.043 GB, free: 56.31 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.7475, allocations: 0 / 1.043 GB, free: 56.31 MB / 0.698 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.000767/0.7483, allocations: 412.4 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.7483, allocations: 9.719 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.215e-05/0.7484, allocations: 12.48 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.7485, allocations: 176.8 kB / 1.044 GB, free: 55.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.7486, allocations: 6.219 kB / 1.044 GB, free: 55.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.7486, allocations: 6.094 kB / 1.044 GB, free: 55.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.7489, allocations: 93.02 kB / 1.044 GB, free: 55.65 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.749, allocations: 1.875 kB / 1.044 GB, free: 55.65 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.749, allocations: 9.578 kB / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.749, allocations: 3.719 kB / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004006/0.7494, allocations: 89.11 kB / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.7499, allocations: 332.1 kB / 1.044 GB, free: 55.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.7502, allocations: 66.88 kB / 1.044 GB, free: 55.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.7504, allocations: 54.11 kB / 1.044 GB, free: 55.29 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.7505, allocations: 0 / 1.044 GB, free: 55.29 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003844/0.7508, allocations: 106.8 kB / 1.045 GB, free: 55.23 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.7509, allocations: 0.5938 kB / 1.045 GB, free: 55.23 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0008042/0.7517, allocations: 203.8 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.7517, allocations: 53.97 kB / 1.045 GB, free: 55.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.7518, allocations: 124 kB / 1.045 GB, free: 54.99 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.7519, allocations: 28.27 kB / 1.045 GB, free: 54.96 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.7519, allocations: 98.94 kB / 1.045 GB, free: 54.87 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.752, allocations: 11.56 kB / 1.045 GB, free: 54.86 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.67e-05/0.752, allocations: 7.938 kB / 1.045 GB, free: 54.85 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.338e-05/0.7521, allocations: 321.4 kB / 1.045 GB, free: 54.54 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.7523, allocations: 75.05 kB / 1.045 GB, free: 54.52 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.7526, allocations: 87.94 kB / 1.045 GB, free: 54.48 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004748/0.7531, allocations: 169.1 kB / 1.046 GB, free: 54.39 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.7531, allocations: 2.312 kB / 1.046 GB, free: 54.39 MB / 0.698 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007014/0.7539, allocations: 233.5 kB / 1.046 GB, free: 54.28 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.7539, allocations: 40 kB / 1.046 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.7539, allocations: 1.125 kB / 1.046 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.754, allocations: 8.094 kB / 1.046 GB, free: 54.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.7541, allocations: 19.08 kB / 1.046 GB, free: 54.24 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.7542, allocations: 0 / 1.046 GB, free: 54.24 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.7545, allocations: 63.36 kB / 1.046 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.7546, allocations: 9.859 kB / 1.046 GB, free: 54.23 MB / 0.698 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,$PRE.booPul.y,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 9.986e-05/0.7547, allocations: 127.6 kB / 1.046 GB, free: 54.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.7547, allocations: 6.094 kB / 1.046 GB, free: 54.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.7547, allocations: 9.375 kB / 1.046 GB, free: 54.09 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.7548, allocations: 2.062 kB / 1.046 GB, free: 54.09 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7548, allocations: 1.062 kB / 1.046 GB, free: 54.09 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.7548, allocations: 7.938 kB / 1.046 GB, free: 54.09 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.7549, allocations: 186.6 kB / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.7549, allocations: 2.25 kB / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.7551, allocations: 17.83 kB / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.7551, allocations: 0 / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.7551, allocations: 1.031 kB / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.7551, allocations: 1.625 kB / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.7551, allocations: 0 / 1.046 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005022/0.7556, allocations: 183.9 kB / 1.047 GB, free: 53.78 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.7557, allocations: 80.97 kB / 1.047 GB, free: 53.69 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.7557, allocations: 0.7031 kB / 1.047 GB, free: 53.69 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.7558, allocations: 16.8 kB / 1.047 GB, free: 53.69 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.7559, allocations: 5.094 kB / 1.047 GB, free: 53.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.7559, allocations: 1.875 kB / 1.047 GB, free: 53.69 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.643e-05/0.756, allocations: 103.9 kB / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.756, allocations: 0 / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003234/0.7563, allocations: 26.02 kB / 1.047 GB, free: 53.6 MB / 0.698 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.0002106/0.7565, allocations: 108.9 kB / 1.047 GB, free: 53.51 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006483/0.7572, allocations: 209.4 kB / 1.047 GB, free: 53.41 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7572, allocations: 1.094 kB / 1.047 GB, free: 53.41 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.7575, allocations: 63.78 kB / 1.047 GB, free: 53.39 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.7578, allocations: 21.73 kB / 1.047 GB, free: 53.38 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004172/0.7582, allocations: 186.2 kB / 1.047 GB, free: 53.23 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.7584, allocations: 0.687 MB / 1.048 GB, free: 52.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.015e-05/0.7584, allocations: 7.344 kB / 1.048 GB, free: 52.53 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.7585, allocations: 14.44 kB / 1.048 GB, free: 52.52 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.7585, allocations: 0 / 1.048 GB, free: 52.52 MB / 0.698 GB Notification: Performance of Templates: time 0.005131/0.7636, allocations: 1.393 MB / 1.049 GB, free: 52.4 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1)