Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 106.6 kB / 16.29 MB, free: 6.43 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.002228/0.002228, allocations: 184 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.072/2.072, allocations: 292.3 MB / 0.5495 GB, free: 17.49 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.001605/0.001605, allocations: 67.89 kB / 0.6722 GB, free: 6.496 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3109, allocations: 114.6 MB / 0.7841 GB, free: 3.82 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002385/0.3133, allocations: 0.756 MB / 0.7848 GB, free: 3.059 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001689/0.315, allocations: 1.156 MB / 0.786 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.784e-05/0.3151, allocations: 0 / 0.786 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.974e-05/0.3152, allocations: 11.88 kB / 0.786 GB, free: 1.875 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.995e-05/0.3153, allocations: 11.92 kB / 0.786 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.3158, allocations: 131.7 kB / 0.7861 GB, free: 1.734 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.316, allocations: 135.7 kB / 0.7862 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.3162, allocations: 24.17 kB / 0.7863 GB, free: 1.574 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.3163, allocations: 47.84 kB / 0.7863 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.3164, allocations: 55.8 kB / 0.7864 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.3164, allocations: 12 kB / 0.7864 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.839e-05/0.3165, allocations: 19.98 kB / 0.7864 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.3166, allocations: 15.98 kB / 0.7864 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.835e-05/0.3166, allocations: 51.77 kB / 0.7865 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.3168, allocations: 119.7 kB / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.3169, allocations: 0 / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3169, allocations: 0 / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3169, allocations: 0 / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000678/0.3176, allocations: 417.2 kB / 0.787 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3176, allocations: 8.031 kB / 0.787 GB, free: 0.7891 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.3177, allocations: 16.83 kB / 0.787 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.3178, allocations: 180.2 kB / 0.7872 GB, free: 0.5586 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3178, allocations: 4.375 kB / 0.7872 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.3179, allocations: 8.375 kB / 0.7872 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.3181, allocations: 78.16 kB / 0.7872 GB, free: 476 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3181, allocations: 3.938 kB / 0.7873 GB, free: 472 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3181, allocations: 3.984 kB / 0.7873 GB, free: 468 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3182, allocations: 0 / 0.7873 GB, free: 468 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.3183, allocations: 51.89 kB / 0.7873 GB, free: 416 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005775/0.3189, allocations: 336.7 kB / 0.7876 GB, free: 28 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.574/0.8929, allocations: 56.94 kB / 0.7877 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.8931, allocations: 33.61 kB / 0.7877 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.8932, allocations: 1.094 kB / 0.7877 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.8935, allocations: 95 kB / 0.7878 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 3.076e-06/0.8935, allocations: 0 / 0.7878 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0004456/0.8939, allocations: 155.9 kB / 0.788 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.894, allocations: 53.72 kB / 0.788 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.8941, allocations: 121.5 kB / 0.7881 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.8941, allocations: 28.98 kB / 0.7881 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.8942, allocations: 97.42 kB / 0.7882 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.8942, allocations: 17.8 kB / 0.7883 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.8943, allocations: 37.88 kB / 0.7883 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.358e-05/0.8943, allocations: 324.8 kB / 0.7886 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.8945, allocations: 52.03 kB / 0.7887 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.8946, allocations: 89.67 kB / 0.7887 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.8948, allocations: 147.5 kB / 0.7889 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.8949, allocations: 5.594 kB / 0.7889 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00037/0.8952, allocations: 217.2 kB / 0.7891 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.8953, allocations: 33.48 kB / 0.7891 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.8953, allocations: 3.312 kB / 0.7891 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.8953, allocations: 3.828 kB / 0.7891 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.8954, allocations: 19.23 kB / 0.7891 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.8954, allocations: 0 / 0.7891 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.8956, allocations: 35.91 kB / 0.7892 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.8956, allocations: 12.95 kB / 0.7892 GB, free: 47.88 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.68e-05/0.8957, allocations: 132.9 kB / 0.7893 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.8957, allocations: 2.844 kB / 0.7893 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002553/0.896, allocations: 123.8 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.896, allocations: 3.594 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.896, allocations: 0 / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.896, allocations: 2.281 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.8964, allocations: 386.3 kB / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8964, allocations: 2.688 kB / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.297e-05/0.8965, allocations: 14.08 kB / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.8965, allocations: 0 / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.906e-06/0.8965, allocations: 2.625 kB / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8965, allocations: 0 / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.8965, allocations: 0.5625 kB / 0.7898 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.8968, allocations: 213 kB / 0.79 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.8968, allocations: 83.64 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.8968, allocations: 8.719 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.682e-05/0.8969, allocations: 7.016 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.8969, allocations: 6.562 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.897, allocations: 9.188 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.65e-05/0.897, allocations: 91.47 kB / 0.7902 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.897, allocations: 4.281 kB / 0.7902 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002545/0.8973, allocations: 22.38 kB / 0.7903 GB, free: 47.12 MB / 0.6544 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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 (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.0001338/0.8974, allocations: 107.9 kB / 0.7904 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003357/0.8978, allocations: 183 kB / 0.7905 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8978, allocations: 1.844 kB / 0.7905 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.8979, allocations: 46.62 kB / 0.7906 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.8982, allocations: 12.67 kB / 0.7906 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003366/0.8985, allocations: 170.6 kB / 0.7908 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.8987, allocations: 0.689 MB / 0.7914 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.153e-05/0.8987, allocations: 10.11 kB / 0.7914 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.8987, allocations: 10.72 kB / 0.7915 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.8988, allocations: 0 / 0.7915 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of Templates: time 0.003889/0.9026, allocations: 1.44 MB / 0.7929 GB, free: 46.11 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)