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.001758/0.001759, allocations: 108 kB / 15.61 MB, free: 152 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.001953/0.001953, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.771/1.771, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.782/1.782, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.00139/0.00139, allocations: 73.86 kB / 0.6715 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2607, allocations: 114.5 MB / 0.7834 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002472/0.2632, allocations: 0.7617 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001843/0.2651, allocations: 1.153 MB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.255e-05/0.2652, allocations: 4 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.87e-05/0.2652, allocations: 3.938 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.264e-05/0.2653, allocations: 15.86 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005956/0.2659, allocations: 130.3 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.2661, allocations: 139.7 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.2663, allocations: 16.17 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.2664, allocations: 47.91 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.2665, allocations: 47.81 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.2666, allocations: 8 kB / 0.7856 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.23e-05/0.2667, allocations: 27.94 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/0.2667, allocations: 19.97 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.783e-05/0.2668, allocations: 47.78 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.267, allocations: 119.7 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.267, allocations: 4 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.713e-06/0.267, allocations: 0 / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.267, allocations: 0 / 0.7858 GB, free: 10.94 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.0007658/0.2678, allocations: 413.2 kB / 0.7862 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2678, allocations: 12.03 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.2679, allocations: 12.84 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.2681, allocations: 176.2 kB / 0.7864 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.2681, allocations: 12.36 kB / 0.7864 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.2681, allocations: 16.36 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.2684, allocations: 74.09 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2684, allocations: 3.938 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.2684, allocations: 8 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.361e-06/0.2684, allocations: 0 / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.2686, allocations: 47.95 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005678/0.2692, allocations: 352.5 kB / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.2694, allocations: 54.55 kB / 0.787 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.2695, allocations: 36.97 kB / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.2695, allocations: 0 / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.2698, allocations: 87.39 kB / 0.7871 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.2698, allocations: 0 / 0.7871 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004655/0.2703, allocations: 157.5 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.2703, allocations: 51.41 kB / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.957e-05/0.2704, allocations: 117.8 kB / 0.7874 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.2705, allocations: 29.7 kB / 0.7874 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2706, allocations: 99.97 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.2706, allocations: 19.75 kB / 0.7875 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.164e-05/0.2707, allocations: 41.69 kB / 0.7876 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2708, allocations: 318.8 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.271, allocations: 59.95 kB / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2712, allocations: 89.05 kB / 0.788 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.2715, allocations: 146.8 kB / 0.7882 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2715, allocations: 4 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004531/0.2719, allocations: 211.2 kB / 0.7884 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.272, allocations: 37.69 kB / 0.7884 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.272, allocations: 4 kB / 0.7884 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.272, allocations: 0 / 0.7884 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.2721, allocations: 15.98 kB / 0.7884 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2722, allocations: 3.938 kB / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.2724, allocations: 35.97 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2724, allocations: 12.05 kB / 0.7885 GB, free: 7.949 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.0001104/0.2725, allocations: 122.4 kB / 0.7886 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.2726, allocations: 7.906 kB / 0.7886 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003206/0.2729, allocations: 129.9 kB / 0.7887 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2729, allocations: 4 kB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2729, allocations: 0 / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2729, allocations: 0 / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.2734, allocations: 378.8 kB / 0.7891 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.2734, allocations: 3.984 kB / 0.7891 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.718e-05/0.2735, allocations: 11.94 kB / 0.7891 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2735, allocations: 0 / 0.7891 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.2735, allocations: 7.984 kB / 0.7891 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2735, allocations: 0 / 0.7891 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2735, allocations: 7.953 kB / 0.7891 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.2738, allocations: 223.4 kB / 0.7893 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.514e-05/0.2739, allocations: 81.02 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.2739, allocations: 4 kB / 0.7894 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.274, allocations: 11.92 kB / 0.7894 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.274, allocations: 7.922 kB / 0.7894 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2741, allocations: 8 kB / 0.7894 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.127e-05/0.2741, allocations: 91.28 kB / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2741, allocations: 0 / 0.7895 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002792/0.2744, allocations: 23.98 kB / 0.7896 GB, free: 6.742 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.000189/0.2746, allocations: 103.2 kB / 0.7897 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004315/0.275, allocations: 187.5 kB / 0.7898 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2751, allocations: 4.062 kB / 0.7898 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.2752, allocations: 39.97 kB / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.2755, allocations: 10.64 kB / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005039/0.276, allocations: 186.4 kB / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.2763, allocations: 0.6885 MB / 0.7907 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.554e-05/0.2764, allocations: 4 kB / 0.7907 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.2764, allocations: 11.44 kB / 0.7908 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.2764, allocations: 0 / 0.7908 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of Templates: time 0.004301/0.2807, allocations: 1.437 MB / 0.7922 GB, free: 4.027 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)