Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.286/2.286, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001566/0.001566, allocations: 178.2 kB / 325.5 MB, free: 2.918 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.367/2.367, allocations: 205.4 MB / 0.5764 GB, free: 21.17 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001135, allocations: 99.42 kB / 0.6809 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004633, allocations: 16.39 kB / 0.7951 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2136, allocations: 106.3 MB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2202/0.4338, allocations: 131.4 MB / 1.027 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.4342, allocations: 75.95 kB / 1.027 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002759/0.437, allocations: 0.7392 MB / 1.028 GB, free: 13.53 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.879e-06/0.4371, allocations: 3.984 kB / 1.028 GB, free: 13.52 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.4371, allocations: 0 / 1.028 GB, free: 13.52 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005482/0.4376, allocations: 355.2 kB / 1.028 GB, free: 13.13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.4377, allocations: 12.03 kB / 1.028 GB, free: 13.12 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.4378, allocations: 30.56 kB / 1.028 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.4378, allocations: 11.84 kB / 1.028 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.438, allocations: 179 kB / 1.029 GB, free: 12.85 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.438, allocations: 3.938 kB / 1.029 GB, free: 12.85 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.438, allocations: 4 kB / 1.029 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.4383, allocations: 61.67 kB / 1.029 GB, free: 12.78 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4383, allocations: 0 / 1.029 GB, free: 12.78 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.4384, allocations: 4 kB / 1.029 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4384, allocations: 0 / 1.029 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000301/0.4387, allocations: 43.97 kB / 1.029 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.4392, allocations: 264.9 kB / 1.029 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.4394, allocations: 54.48 kB / 1.029 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.4395, allocations: 7.984 kB / 1.029 GB, free: 12.35 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.4398, allocations: 71.39 kB / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 2.114e-06/0.4398, allocations: 0 / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0006106/0.4404, allocations: 121.6 kB / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.4405, allocations: 63.3 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.203e-05/0.4406, allocations: 93 kB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.4406, allocations: 29.7 kB / 1.029 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.776e-05/0.4407, allocations: 88.12 kB / 1.029 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.4407, allocations: 11.81 kB / 1.029 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-06/0.4407, allocations: 8 kB / 1.029 GB, free: 11.83 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4409, allocations: 310.8 kB / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.441, allocations: 27.97 kB / 1.03 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.4412, allocations: 42.56 kB / 1.03 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.4414, allocations: 23.98 kB / 1.03 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.4414, allocations: 4 kB / 1.03 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003894/0.4418, allocations: 93.59 kB / 1.03 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.4419, allocations: 7.984 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.4419, allocations: 4 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.4419, allocations: 0 / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.4421, allocations: 11.94 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.4421, allocations: 8.219 kB / 1.03 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.4422, allocations: 19.88 kB / 1.03 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.4422, allocations: 4 kB / 1.03 GB, free: 11.26 MB / 0.6823 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001089/0.4424, allocations: 109.8 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.4424, allocations: 11.84 kB / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.4424, allocations: 11.89 kB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.4425, allocations: 0 / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4425, allocations: 4 kB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4425, allocations: 4 kB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006652/0.4432, allocations: 338.5 kB / 1.03 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4432, allocations: 0 / 1.03 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.4433, allocations: 15.98 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.4433, allocations: 0 / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.4433, allocations: 0 / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4433, allocations: 0 / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4434, allocations: 3.953 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004304/0.4438, allocations: 188.6 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.4439, allocations: 85 kB / 1.031 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.4439, allocations: 3.938 kB / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.444, allocations: 12 kB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.4441, allocations: 7.938 kB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.4441, allocations: 4 kB / 1.031 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.897e-05/0.4442, allocations: 87.22 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4442, allocations: 0 / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003034/0.4445, allocations: 12 kB / 1.031 GB, free: 10.27 MB / 0.6823 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 (samTri.y,$whenCondition1,triggeredSampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007639/0.4453, allocations: 0.7167 MB / 1.032 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003802/0.4457, allocations: 59.89 kB / 1.032 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4457, allocations: 4.188 kB / 1.032 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.4459, allocations: 36 kB / 1.032 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.4462, allocations: 9.875 kB / 1.032 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005933/0.4468, allocations: 170.1 kB / 1.032 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.4471, allocations: 0.6926 MB / 1.032 GB, free: 8.496 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.62e-05/0.4471, allocations: 0 / 1.032 GB, free: 8.496 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.432e-05/0.4472, allocations: 19.42 kB / 1.032 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of SimCode: time 8.41e-07/0.4472, allocations: 0 / 1.032 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/0.4672, allocations: 1.23 MB / 1.034 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002583/0.4675, allocations: 204.6 kB / 1.034 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/2.835, allocations: 0 / 1.034 GB, free: 7.176 MB / 0.6823 GB