Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.299/2.299, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001546, allocations: 181.4 kB / 325.6 MB, free: 2.809 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.65/2.65, allocations: 205.4 MB / 0.5766 GB, free: 20.72 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 98.28 kB / 0.6811 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004536/0.0004537, allocations: 12.5 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2492, allocations: 106.3 MB / 0.8989 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001713/0.251, allocations: 1.178 MB / 0.9 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005021/0.2515, allocations: 222.2 kB / 0.9003 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.633e-05/0.2516, allocations: 0 / 0.9003 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.2516, allocations: 7.922 kB / 0.9003 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.397e-05/0.2517, allocations: 3.984 kB / 0.9003 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.2519, allocations: 27.97 kB / 0.9003 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.336e-05/0.252, allocations: 39.89 kB / 0.9003 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.2521, allocations: 16.17 kB / 0.9003 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.436e-05/0.2522, allocations: 19.92 kB / 0.9004 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.527e-05/0.2523, allocations: 27.84 kB / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.2523, allocations: 0 / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.2523, allocations: 4 kB / 0.9004 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.851e-05/0.2523, allocations: 7.984 kB / 0.9004 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.2524, allocations: 45.64 kB / 0.9004 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.81e-05/0.2525, allocations: 47.83 kB / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2525, allocations: 0 / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2525, allocations: 0 / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.2525, allocations: 0 / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006089/0.2531, allocations: 387.4 kB / 0.9009 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2532, allocations: 8.031 kB / 0.9009 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.2532, allocations: 7.906 kB / 0.9009 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.2534, allocations: 179 kB / 0.901 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.2534, allocations: 7.984 kB / 0.9011 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.2534, allocations: 4 kB / 0.9011 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.2537, allocations: 77.59 kB / 0.9011 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2537, allocations: 8 kB / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2538, allocations: 0 / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2538, allocations: 0 / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.2541, allocations: 59.95 kB / 0.9012 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.2546, allocations: 312.7 kB / 0.9015 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.2549, allocations: 74.42 kB / 0.9016 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.2549, allocations: 4 kB / 0.9016 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.2552, allocations: 87.59 kB / 0.9017 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.913e-06/0.2552, allocations: 3.938 kB / 0.9017 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0006375/0.2559, allocations: 169.4 kB / 0.9018 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.2559, allocations: 55.41 kB / 0.9019 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/0.256, allocations: 118 kB / 0.902 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2561, allocations: 29.7 kB / 0.902 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.2561, allocations: 99.84 kB / 0.9021 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.2561, allocations: 19.81 kB / 0.9021 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.2562, allocations: 0 / 0.9021 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.2562, allocations: 318.8 kB / 0.9024 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.2564, allocations: 31.97 kB / 0.9025 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.2566, allocations: 68.27 kB / 0.9025 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.2568, allocations: 39.92 kB / 0.9026 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2568, allocations: 0 / 0.9026 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004258/0.2573, allocations: 129.5 kB / 0.9027 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2573, allocations: 8 kB / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2573, allocations: 0 / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.2573, allocations: 0 / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.2575, allocations: 36 kB / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.2575, allocations: 320 / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.2577, allocations: 15.98 kB / 0.9027 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.2577, allocations: 4 kB / 0.9027 GB, free: 61.25 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.814e-05/0.2578, allocations: 127 kB / 0.9029 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.2578, allocations: 11.89 kB / 0.9029 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004377/0.2583, allocations: 133.9 kB / 0.903 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2583, allocations: 4 kB / 0.903 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2583, allocations: 3.953 kB / 0.903 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2583, allocations: 0 / 0.903 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.259, allocations: 402.4 kB / 0.9034 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.259, allocations: 0 / 0.9034 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.2592, allocations: 28.3 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2592, allocations: 0 / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.2592, allocations: 3.953 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2592, allocations: 0 / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2592, allocations: 3.938 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004129/0.2596, allocations: 215.5 kB / 0.9036 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.876e-05/0.2597, allocations: 85.02 kB / 0.9037 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.2597, allocations: 3.984 kB / 0.9037 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.2599, allocations: 19.94 kB / 0.9037 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.26, allocations: 12.02 kB / 0.9038 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.26, allocations: 3.938 kB / 0.9038 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.724e-05/0.2601, allocations: 99.27 kB / 0.9039 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2601, allocations: 0 / 0.9039 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003194/0.2604, allocations: 12 kB / 0.9039 GB, free: 60 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 9.55e-05/0.2605, allocations: 99.25 kB / 0.904 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003989/0.2609, allocations: 87.89 kB / 0.904 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2609, allocations: 0 / 0.904 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001911/0.2611, allocations: 43.97 kB / 0.9041 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.2614, allocations: 12.23 kB / 0.9041 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005328/0.2619, allocations: 199.1 kB / 0.9043 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.2622, allocations: 0.6926 MB / 0.905 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.158e-05/0.2622, allocations: 11.98 kB / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.2623, allocations: 7.438 kB / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of SimCode: time 2.084e-06/0.2623, allocations: 0 / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of Templates: time 0.004438/0.2668, allocations: 0.7697 MB / 0.9057 GB, free: 58.03 MB / 0.6042 GB