Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.792/1.792, allocations: 291.7 MB / 306.8 MB, free: 7.656 MB / 234.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.001554/0.001553, allocations: 181.5 kB / 375.4 MB, free: 5.082 MB / 298.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.55/1.55, allocations: 225.7 MB / 0.6538 GB, free: 13.6 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008285/0.0008286, allocations: 108.5 kB / 0.7699 GB, free: 50.35 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004202/0.0004203, allocations: 15.98 kB / 0.8956 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7654/0.7658, allocations: 118.1 MB / 1.011 GB, free: 58.04 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007829/0.7667, allocations: 386.9 kB / 1.011 GB, free: 58.03 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001157/0.7679, allocations: 1.029 MB / 1.012 GB, free: 57.98 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.7679, allocations: 5.906 kB / 1.012 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.735e-05/0.7679, allocations: 0 / 1.012 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.768, allocations: 8.625 kB / 1.012 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.7682, allocations: 27.52 kB / 1.012 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 7.255e-05/0.7683, allocations: 41.03 kB / 1.012 GB, free: 57.96 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.707e-05/0.7684, allocations: 13.84 kB / 1.012 GB, free: 57.96 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 6.396e-05/0.7685, allocations: 15.62 kB / 1.012 GB, free: 57.96 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.234e-05/0.7686, allocations: 22.25 kB / 1.012 GB, free: 57.95 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.7686, allocations: 0 / 1.012 GB, free: 57.95 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.75e-05/0.7686, allocations: 16.44 kB / 1.012 GB, free: 57.95 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.757e-05/0.7687, allocations: 8.641 kB / 1.012 GB, free: 57.95 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.7687, allocations: 32.77 kB / 1.012 GB, free: 57.92 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 9.189e-05/0.7688, allocations: 43.33 kB / 1.013 GB, free: 57.91 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7688, allocations: 0 / 1.013 GB, free: 57.91 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7688, allocations: 0 / 1.013 GB, free: 57.91 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.7688, allocations: 0 / 1.013 GB, free: 57.91 MB / 0.7136 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.0004798/0.7693, allocations: 362 kB / 1.013 GB, free: 57.56 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.7693, allocations: 11.09 kB / 1.013 GB, free: 57.56 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.7694, allocations: 0.9375 kB / 1.013 GB, free: 57.56 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.529e-05/0.7695, allocations: 174.7 kB / 1.013 GB, free: 57.36 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.7695, allocations: 5.484 kB / 1.013 GB, free: 57.36 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.7695, allocations: 7.266 kB / 1.013 GB, free: 57.36 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.7697, allocations: 66.98 kB / 1.013 GB, free: 57.32 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.7697, allocations: 4.125 kB / 1.013 GB, free: 57.32 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.7697, allocations: 4.656 kB / 1.013 GB, free: 57.32 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.7698, allocations: 5.078 kB / 1.013 GB, free: 57.32 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.77, allocations: 59.91 kB / 1.013 GB, free: 57.31 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000382/0.7704, allocations: 277.6 kB / 1.013 GB, free: 57.05 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.7705, allocations: 59 kB / 1.014 GB, free: 57.02 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.5e-05/0.7706, allocations: 36.55 kB / 1.014 GB, free: 57.02 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.7707, allocations: 1.375 kB / 1.014 GB, free: 57.02 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.7709, allocations: 82.48 kB / 1.014 GB, free: 56.96 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.7709, allocations: 0 / 1.014 GB, free: 56.96 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0003853/0.7713, allocations: 141 kB / 1.014 GB, free: 56.93 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.7713, allocations: 52.19 kB / 1.014 GB, free: 56.87 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.471e-05/0.7714, allocations: 106.6 kB / 1.014 GB, free: 56.77 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.7714, allocations: 26.36 kB / 1.014 GB, free: 56.74 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.041e-05/0.7714, allocations: 84.73 kB / 1.014 GB, free: 56.66 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.7715, allocations: 15.58 kB / 1.014 GB, free: 56.64 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.7715, allocations: 9.594 kB / 1.014 GB, free: 56.64 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.7715, allocations: 312.2 kB / 1.014 GB, free: 56.33 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.133e-05/0.7716, allocations: 31.14 kB / 1.014 GB, free: 56.33 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.894e-05/0.7717, allocations: 59.3 kB / 1.014 GB, free: 56.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.7719, allocations: 93.3 kB / 1.015 GB, free: 56.26 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7719, allocations: 0 / 1.015 GB, free: 56.26 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002302/0.7722, allocations: 120.8 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.7722, allocations: 4.688 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.7722, allocations: 4.344 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.7722, allocations: 0 / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.7723, allocations: 23.42 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.7723, allocations: 2.031 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.7724, allocations: 10.91 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.7724, allocations: 7.312 kB / 1.015 GB, free: 56.22 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.193e-05/0.7725, allocations: 121.9 kB / 1.015 GB, free: 56.1 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.017e-05/0.7725, allocations: 3.219 kB / 1.015 GB, free: 56.1 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.7728, allocations: 111 kB / 1.015 GB, free: 56.06 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.7728, allocations: 2.531 kB / 1.015 GB, free: 56.06 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.7728, allocations: 0 / 1.015 GB, free: 56.06 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7728, allocations: 0 / 1.015 GB, free: 56.06 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003586/0.7732, allocations: 378.5 kB / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.7732, allocations: 0 / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.806e-05/0.7732, allocations: 14.3 kB / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7732, allocations: 0 / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.7733, allocations: 2.938 kB / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7733, allocations: 0 / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7733, allocations: 0 / 1.015 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.7735, allocations: 211.8 kB / 1.015 GB, free: 55.62 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.7735, allocations: 84.95 kB / 1.016 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.7736, allocations: 2.625 kB / 1.016 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.044e-05/0.7737, allocations: 13.92 kB / 1.016 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.7737, allocations: 7.219 kB / 1.016 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.7737, allocations: 6.812 kB / 1.016 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.265e-05/0.7738, allocations: 83.06 kB / 1.016 GB, free: 55.44 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7738, allocations: 1.156 kB / 1.016 GB, free: 55.44 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002246/0.774, allocations: 15.97 kB / 1.016 GB, free: 55.44 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001251/0.7741, allocations: 112.4 kB / 1.016 GB, free: 55.35 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.7744, allocations: 78.11 kB / 1.016 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7744, allocations: 0 / 1.016 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.7745, allocations: 38.06 kB / 1.016 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.7747, allocations: 7.531 kB / 1.016 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002859/0.775, allocations: 144.7 kB / 1.016 GB, free: 55.22 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.7752, allocations: 0.6818 MB / 1.017 GB, free: 54.53 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.137e-05/0.7752, allocations: 3.703 kB / 1.017 GB, free: 54.53 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.7752, allocations: 13.22 kB / 1.017 GB, free: 54.52 MB / 0.7136 GB Notification: Performance of SimCode: time 2.2e-07/0.7752, allocations: 3.938 kB / 1.017 GB, free: 54.52 MB / 0.7136 GB Notification: Performance of Templates: time 0.002589/0.7778, allocations: 0.6738 MB / 1.017 GB, free: 54.48 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)