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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.721/1.721, allocations: 288.2 MB / 303.2 MB, free: 8.188 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.001052/0.001052, allocations: 185 kB / 371.8 MB, free: 10.3 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.891/1.891, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.0009674/0.0009677, allocations: 90.92 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004571/0.0004576, allocations: 15 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2598, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0009306/0.2608, allocations: 469.9 kB / 0.9799 GB, free: 27.15 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.2621, allocations: 1.111 MB / 0.981 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.49e-05/0.2622, allocations: 0 / 0.981 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.2622, allocations: 3.938 kB / 0.981 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-05/0.2623, allocations: 15.98 kB / 0.981 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.2627, allocations: 118.1 kB / 0.9812 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.609e-05/0.2628, allocations: 67.91 kB / 0.9812 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2629, allocations: 12.19 kB / 0.9812 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.495e-05/0.263, allocations: 35.91 kB / 0.9813 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.166e-05/0.263, allocations: 43.81 kB / 0.9813 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.2631, allocations: 12 kB / 0.9813 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.2631, allocations: 15.98 kB / 0.9813 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.2632, allocations: 11.92 kB / 0.9813 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.084e-05/0.2632, allocations: 37.7 kB / 0.9814 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.2633, allocations: 88.02 kB / 0.9815 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2633, allocations: 0 / 0.9815 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2634, allocations: 0 / 0.9815 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.2634, allocations: 3.938 kB / 0.9815 GB, free: 25.56 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.000506/0.2639, allocations: 408.8 kB / 0.9819 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.2639, allocations: 12.02 kB / 0.9819 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.264, allocations: 34.56 kB / 0.9819 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.264, allocations: 7.906 kB / 0.9819 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.917e-05/0.2641, allocations: 178.9 kB / 0.9821 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.2641, allocations: 8 kB / 0.9821 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.2642, allocations: 8 kB / 0.9821 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.2644, allocations: 77.66 kB / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.2645, allocations: 0 / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2645, allocations: 4 kB / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-06/0.2645, allocations: 0 / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.2647, allocations: 59.89 kB / 0.9822 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004302/0.2651, allocations: 344.6 kB / 0.9826 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.2653, allocations: 74.58 kB / 0.9826 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.2653, allocations: 7.969 kB / 0.9826 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.2656, allocations: 91.48 kB / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.2656, allocations: 0 / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0004192/0.266, allocations: 161.5 kB / 0.9829 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.2661, allocations: 67.28 kB / 0.9829 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.148e-05/0.2661, allocations: 113.8 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.2662, allocations: 29.7 kB / 0.9831 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.2662, allocations: 104 kB / 0.9832 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.2663, allocations: 23.73 kB / 0.9832 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.2663, allocations: 0 / 0.9832 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.372e-05/0.2663, allocations: 322.8 kB / 0.9835 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.2665, allocations: 55.91 kB / 0.9836 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.2667, allocations: 97.55 kB / 0.9837 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.2668, allocations: 85.67 kB / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2668, allocations: 0 / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003812/0.2672, allocations: 219.2 kB / 0.9839 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.2673, allocations: 41.69 kB / 0.984 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.2673, allocations: 4.312 kB / 0.984 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2673, allocations: 0 / 0.984 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.2674, allocations: 27.92 kB / 0.984 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.2674, allocations: 0 / 0.984 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.2677, allocations: 59.75 kB / 0.9841 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2677, allocations: 11.98 kB / 0.9841 GB, free: 22.61 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 8.549e-05/0.2678, allocations: 125.8 kB / 0.9842 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.2678, allocations: 0 / 0.9842 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000308/0.2681, allocations: 134 kB / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2681, allocations: 4 kB / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2681, allocations: 0 / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2681, allocations: 0 / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003804/0.2685, allocations: 394.3 kB / 0.9847 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2685, allocations: 3.984 kB / 0.9847 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.908e-05/0.2686, allocations: 16 kB / 0.9847 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2686, allocations: 0 / 0.9847 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.2686, allocations: 3.984 kB / 0.9847 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2686, allocations: 0 / 0.9847 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2687, allocations: 3.953 kB / 0.9847 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.2689, allocations: 219.5 kB / 0.9849 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.78e-05/0.269, allocations: 81.02 kB / 0.985 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.269, allocations: 4 kB / 0.985 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.241e-05/0.2691, allocations: 11.98 kB / 0.985 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.2691, allocations: 15.92 kB / 0.9851 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.2691, allocations: 7.953 kB / 0.9851 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.573e-05/0.2692, allocations: 99.25 kB / 0.9852 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2692, allocations: 0 / 0.9852 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002726/0.2695, allocations: 24 kB / 0.9852 GB, free: 21.38 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.0004893/0.27, allocations: 0.7592 MB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003359/0.2703, allocations: 187.3 kB / 0.9861 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2703, allocations: 0 / 0.9861 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.2704, allocations: 51.91 kB / 0.9862 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.2706, allocations: 13.05 kB / 0.9862 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000661/0.2713, allocations: 1.178 MB / 0.9873 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2715, allocations: 0.6965 MB / 0.988 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.374e-05/0.2715, allocations: 7.781 kB / 0.988 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.2716, allocations: 19.42 kB / 0.988 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2716, allocations: 3.938 kB / 0.988 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01273/0.2843, allocations: 2.198 MB / 0.9902 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.2846, allocations: 208.3 kB / 0.9904 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.85, allocations: 3.234 kB / 0.9904 GB, free: 16.07 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)