Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009156/0.0009156, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001107/0.001107, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.674/1.674, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005087/0.000509, allocations: 17.06 kB / 0.6739 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2636, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00112/0.2648, allocations: 485.3 kB / 0.7879 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.2662, allocations: 1.056 MB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.078e-05/0.2663, allocations: 0 / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.2663, allocations: 3.938 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.611e-05/0.2664, allocations: 3.938 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2666, allocations: 43.89 kB / 0.789 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.2668, allocations: 63.78 kB / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.932e-05/0.2669, allocations: 20.16 kB / 0.789 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.194e-05/0.2669, allocations: 27.91 kB / 0.7891 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.171e-05/0.267, allocations: 27.86 kB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.267, allocations: 4 kB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.2671, allocations: 11.98 kB / 0.7891 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.2671, allocations: 15.97 kB / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.713e-05/0.2672, allocations: 37.64 kB / 0.7892 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.2673, allocations: 48.17 kB / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.2673, allocations: 0 / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.324e-06/0.2673, allocations: 0 / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2673, allocations: 4 kB / 0.7892 GB, free: 9.969 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006363/0.268, allocations: 375.1 kB / 0.7896 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.268, allocations: 8.031 kB / 0.7896 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.407e-05/0.2681, allocations: 42.55 kB / 0.7896 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.2681, allocations: 3.906 kB / 0.7896 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.2683, allocations: 174.9 kB / 0.7898 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.2683, allocations: 4 kB / 0.7898 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.2683, allocations: 12 kB / 0.7898 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.2686, allocations: 73.59 kB / 0.7899 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2686, allocations: 0 / 0.7899 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2686, allocations: 3.938 kB / 0.7899 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2686, allocations: 4 kB / 0.7899 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2688, allocations: 55.95 kB / 0.7899 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000676/0.2695, allocations: 340.6 kB / 0.7903 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.2696, allocations: 50.56 kB / 0.7903 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.825e-05/0.2697, allocations: 44.89 kB / 0.7904 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2698, allocations: 0 / 0.7904 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.27, allocations: 91.39 kB / 0.7904 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.27, allocations: 0 / 0.7904 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003974/0.2704, allocations: 153.5 kB / 0.7906 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.2705, allocations: 55.36 kB / 0.7906 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.195e-05/0.2706, allocations: 117.8 kB / 0.7908 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.2706, allocations: 25.7 kB / 0.7908 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.2707, allocations: 100 kB / 0.7909 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.2707, allocations: 15.75 kB / 0.7909 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-06/0.2707, allocations: 4 kB / 0.7909 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2708, allocations: 318.8 kB / 0.7912 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.2709, allocations: 31.98 kB / 0.7912 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.2711, allocations: 85.91 kB / 0.7913 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.2712, allocations: 39.98 kB / 0.7913 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2712, allocations: 4 kB / 0.7913 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002793/0.2715, allocations: 133.7 kB / 0.7915 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2715, allocations: 4 kB / 0.7915 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.2715, allocations: 4 kB / 0.7915 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.2716, allocations: 0 / 0.7915 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.2717, allocations: 31.91 kB / 0.7915 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.2717, allocations: 4 kB / 0.7915 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.761e-05/0.2718, allocations: 19.8 kB / 0.7915 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.2718, allocations: 11.98 kB / 0.7915 GB, free: 7.324 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 9.788e-05/0.2719, allocations: 129.6 kB / 0.7917 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.2719, allocations: 7.906 kB / 0.7917 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.272, allocations: 4.375 kB / 0.7917 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.272, allocations: 0 / 0.7917 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.272, allocations: 4 kB / 0.7917 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.272, allocations: 0 / 0.7917 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.2725, allocations: 398.3 kB / 0.7921 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2725, allocations: 0 / 0.7921 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.1e-05/0.2725, allocations: 11.98 kB / 0.7921 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2725, allocations: 0 / 0.7921 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.2726, allocations: 0 / 0.7921 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.2726, allocations: 3.953 kB / 0.7921 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2726, allocations: 4 kB / 0.7921 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.2729, allocations: 207.4 kB / 0.7923 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.2729, allocations: 85.02 kB / 0.7924 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.2729, allocations: 4 kB / 0.7924 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.492e-05/0.273, allocations: 7.984 kB / 0.7924 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.2731, allocations: 11.95 kB / 0.7924 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.2731, allocations: 11.92 kB / 0.7924 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.2731, allocations: 87.28 kB / 0.7925 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2731, allocations: 3.938 kB / 0.7925 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000244/0.2734, allocations: 15.98 kB / 0.7925 GB, free: 6.25 MB / 0.6075 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0006702/0.2741, allocations: 0.7475 MB / 0.7932 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002557/0.2743, allocations: 87.89 kB / 0.7933 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2743, allocations: 0 / 0.7933 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.2745, allocations: 48.34 kB / 0.7934 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.2747, allocations: 11.94 kB / 0.7934 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2758, allocations: 0.5951 MB / 0.794 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.2761, allocations: 0.6923 MB / 0.7946 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.005e-05/0.2762, allocations: 4 kB / 0.7946 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.363e-05/0.2762, allocations: 28.62 kB / 0.7947 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of SimCode: time 5.31e-07/0.2762, allocations: 0 / 0.7947 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.3059, allocations: 1.793 MB / 0.7964 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.3061, allocations: 204.2 kB / 0.7966 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.029, allocations: 0 / 0.7966 GB, free: 2.07 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) Environment - environmentSimulation: