Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.771/1.771, allocations: 288.4 MB / 303.4 MB, free: 8.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 177.6 kB / 372 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 0.6307 GB, free: 9.965 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009217/0.0009217, allocations: 100.8 kB / 0.7441 GB, free: 5.875 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003991, allocations: 11.88 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2795, allocations: 115.3 MB / 0.9796 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001232/0.2808, allocations: 473.8 kB / 0.9801 GB, free: 27.16 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002349/0.2832, allocations: 1.134 MB / 0.9812 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.2834, allocations: 0 / 0.9812 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.109e-05/0.2834, allocations: 7.938 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.2836, allocations: 11.92 kB / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.2844, allocations: 117.5 kB / 0.9813 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.2847, allocations: 99.8 kB / 0.9814 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.2849, allocations: 16.17 kB / 0.9814 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.285, allocations: 47.84 kB / 0.9814 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.2852, allocations: 35.88 kB / 0.9815 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.2852, allocations: 8 kB / 0.9815 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.2853, allocations: 19.98 kB / 0.9815 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.209e-05/0.2854, allocations: 3.938 kB / 0.9815 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.2855, allocations: 37.7 kB / 0.9815 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.2857, allocations: 83.8 kB / 0.9816 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.2857, allocations: 0 / 0.9816 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 5.491e-06/0.2857, allocations: 0 / 0.9816 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.2858, allocations: 3.938 kB / 0.9816 GB, free: 25.52 MB / 0.6198 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.0008796/0.2867, allocations: 409.1 kB / 0.982 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.921e-05/0.2867, allocations: 8.031 kB / 0.982 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.2868, allocations: 11.91 kB / 0.982 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.2871, allocations: 174.9 kB / 0.9822 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.2871, allocations: 11.98 kB / 0.9822 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.2872, allocations: 11.94 kB / 0.9822 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.2875, allocations: 81.66 kB / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.2875, allocations: 0 / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2876, allocations: 0 / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2876, allocations: 0 / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002405/0.2878, allocations: 63.89 kB / 0.9824 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.2885, allocations: 344.6 kB / 0.9827 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.2888, allocations: 70.58 kB / 0.9828 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.2889, allocations: 36.95 kB / 0.9828 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.2889, allocations: 0 / 0.9828 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003367/0.2893, allocations: 99.34 kB / 0.9829 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.2893, allocations: 0 / 0.9829 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0006185/0.2899, allocations: 165.5 kB / 0.9831 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.29, allocations: 55.36 kB / 0.9831 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2901, allocations: 121.8 kB / 0.9832 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.2901, allocations: 29.7 kB / 0.9832 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.2902, allocations: 92.05 kB / 0.9833 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.2903, allocations: 27.72 kB / 0.9834 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.2903, allocations: 4 kB / 0.9834 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.558e-05/0.2904, allocations: 314.8 kB / 0.9837 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.2906, allocations: 59.95 kB / 0.9837 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.2908, allocations: 97.05 kB / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.291, allocations: 97.61 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.291, allocations: 0 / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004966/0.2915, allocations: 219.1 kB / 0.9841 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.2916, allocations: 37.7 kB / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2916, allocations: 0 / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.2916, allocations: 4 kB / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.2918, allocations: 15.98 kB / 0.9842 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2918, allocations: 4.156 kB / 0.9842 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.2921, allocations: 55.91 kB / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.2922, allocations: 7.984 kB / 0.9842 GB, free: 22.58 MB / 0.6198 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.2923, allocations: 125.8 kB / 0.9844 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.2923, allocations: 7.906 kB / 0.9844 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003544/0.2927, allocations: 130 kB / 0.9845 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2927, allocations: 0 / 0.9845 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.2927, allocations: 7.938 kB / 0.9845 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2927, allocations: 8 kB / 0.9845 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.2931, allocations: 394.7 kB / 0.9849 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2932, allocations: 0 / 0.9849 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.2932, allocations: 15.98 kB / 0.9849 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2933, allocations: 0 / 0.9849 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.2933, allocations: 4 kB / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2933, allocations: 0 / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2933, allocations: 3.953 kB / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.2936, allocations: 227.5 kB / 0.9851 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.524e-05/0.2937, allocations: 85 kB / 0.9852 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.2937, allocations: 4 kB / 0.9852 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.2938, allocations: 11.98 kB / 0.9852 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.2939, allocations: 4 kB / 0.9852 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.2939, allocations: 3.953 kB / 0.9852 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.247e-05/0.294, allocations: 95.75 kB / 0.9853 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.92e-07/0.294, allocations: 4 kB / 0.9853 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003912/0.2944, allocations: 31.94 kB / 0.9854 GB, free: 21.34 MB / 0.6198 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 (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.0001588/0.2945, allocations: 103.2 kB / 0.9855 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004953/0.295, allocations: 191.2 kB / 0.9856 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2951, allocations: 0 / 0.9856 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2952, allocations: 47.91 kB / 0.9857 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.2956, allocations: 13.03 kB / 0.9857 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004863/0.2961, allocations: 191.3 kB / 0.9859 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.2963, allocations: 0.6926 MB / 0.9865 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.972e-05/0.2964, allocations: 7.766 kB / 0.9866 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.889e-05/0.2964, allocations: 11.44 kB / 0.9866 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.2964, allocations: 4 kB / 0.9866 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of Templates: time 0.005347/0.3018, allocations: 1.26 MB / 0.9878 GB, free: 18.77 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)