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.001325/0.001325, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 187.3 kB / 16.62 MB, free: 6.582 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.624/1.624, allocations: 205.1 MB / 222.5 MB, free: 4.516 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 2.004/2.004, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.00143/0.00143, allocations: 74.53 kB / 0.6723 GB, free: 25.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.267, allocations: 114.6 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002243/0.2693, allocations: 0.7671 MB / 0.7849 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001574/0.2709, allocations: 1.153 MB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.574e-05/0.271, allocations: 0 / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.555e-05/0.271, allocations: 7.875 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.2711, allocations: 3.938 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005505/0.2717, allocations: 138.9 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.2719, allocations: 135.7 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.272, allocations: 24.17 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.806e-05/0.2721, allocations: 55.89 kB / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.2722, allocations: 47.81 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2723, allocations: 8 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.424e-05/0.2723, allocations: 31.98 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.156e-05/0.2724, allocations: 8 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.638e-05/0.2724, allocations: 51.77 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.2726, allocations: 119.7 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.2726, allocations: 0 / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2726, allocations: 0 / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2727, allocations: 0 / 0.7866 GB, free: 10.2 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006301/0.2733, allocations: 428.9 kB / 0.787 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2733, allocations: 8.031 kB / 0.787 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.016e-05/0.2734, allocations: 8.844 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2735, allocations: 172.2 kB / 0.7872 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.2735, allocations: 12.36 kB / 0.7872 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.2736, allocations: 8.375 kB / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.2738, allocations: 74.16 kB / 0.7873 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2738, allocations: 7.938 kB / 0.7873 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2738, allocations: 7.938 kB / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2738, allocations: 0 / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.274, allocations: 51.94 kB / 0.7874 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.2746, allocations: 340.6 kB / 0.7877 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.2747, allocations: 66.58 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.566e-05/0.2748, allocations: 32.97 kB / 0.7878 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.2749, allocations: 0 / 0.7878 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.2751, allocations: 87.34 kB / 0.7879 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.2751, allocations: 7.938 kB / 0.7879 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.000443/0.2756, allocations: 153.5 kB / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.2756, allocations: 51.41 kB / 0.7881 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.936e-05/0.2757, allocations: 121.8 kB / 0.7882 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.2757, allocations: 29.7 kB / 0.7882 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.2758, allocations: 96.03 kB / 0.7883 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.2758, allocations: 23.73 kB / 0.7883 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.2759, allocations: 45.69 kB / 0.7884 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.276, allocations: 322.8 kB / 0.7887 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.2762, allocations: 51.95 kB / 0.7887 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2764, allocations: 85.11 kB / 0.7888 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.2767, allocations: 154.7 kB / 0.7889 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.2767, allocations: 4 kB / 0.789 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004348/0.2771, allocations: 211.1 kB / 0.7892 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.2772, allocations: 37.69 kB / 0.7892 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2772, allocations: 4 kB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2772, allocations: 0 / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2773, allocations: 19.98 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.2773, allocations: 0 / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.2775, allocations: 36.12 kB / 0.7892 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.2776, allocations: 7.984 kB / 0.7893 GB, free: 7.207 MB / 0.6075 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 0.0001024/0.2777, allocations: 129.7 kB / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.2777, allocations: 7.906 kB / 0.7894 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003029/0.278, allocations: 122 kB / 0.7895 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.278, allocations: 4 kB / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.278, allocations: 0 / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.278, allocations: 0 / 0.7895 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/0.2785, allocations: 378.4 kB / 0.7899 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2785, allocations: 0 / 0.7899 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.23e-05/0.2785, allocations: 23.86 kB / 0.7899 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2786, allocations: 0 / 0.7899 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.2786, allocations: 0 / 0.7899 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.2786, allocations: 7.984 kB / 0.7899 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2786, allocations: 3.938 kB / 0.7899 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.279, allocations: 219.3 kB / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.623e-05/0.2791, allocations: 81.02 kB / 0.7902 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.2791, allocations: 4 kB / 0.7902 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.2792, allocations: 3.984 kB / 0.7902 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.2792, allocations: 15.94 kB / 0.7902 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.2793, allocations: 7.984 kB / 0.7902 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.447e-05/0.2793, allocations: 87.28 kB / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2793, allocations: 0 / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002781/0.2796, allocations: 23.98 kB / 0.7903 GB, free: 6.004 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 ($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.0001711/0.2798, allocations: 103.2 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003991/0.2802, allocations: 183.3 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2802, allocations: 4 kB / 0.7906 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.2803, allocations: 43.91 kB / 0.7906 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.2806, allocations: 12.77 kB / 0.7907 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.281, allocations: 167.5 kB / 0.7908 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.2814, allocations: 0.6992 MB / 0.7915 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.369e-05/0.2814, allocations: 4 kB / 0.7915 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.2815, allocations: 15.44 kB / 0.7915 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2815, allocations: 0 / 0.7915 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of Templates: time 0.004131/0.2856, allocations: 1.427 MB / 0.7929 GB, free: 3.297 MB / 0.6075 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)