Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.522/1.522, allocations: 252 MB / 267.3 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.001081, allocations: 176.1 kB / 327 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.19/2.19, allocations: 205.4 MB / 0.578 GB, free: 20.1 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008822/0.0008822, allocations: 97.58 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005009/0.0005012, allocations: 8.906 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2534, allocations: 106.3 MB / 0.9009 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001671/0.2551, allocations: 1.195 MB / 0.9021 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005142/0.2556, allocations: 232.1 kB / 0.9023 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.165e-05/0.2557, allocations: 3.938 kB / 0.9023 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.2558, allocations: 0 / 0.9023 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.2559, allocations: 19.91 kB / 0.9023 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.2562, allocations: 23.92 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.547e-05/0.2563, allocations: 59.84 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.2564, allocations: 12.19 kB / 0.9024 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.843e-05/0.2565, allocations: 23.86 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.81e-05/0.2566, allocations: 31.89 kB / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.2566, allocations: 4 kB / 0.9025 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.444e-05/0.2566, allocations: 4 kB / 0.9025 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.277e-05/0.2567, allocations: 11.92 kB / 0.9025 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.124e-05/0.2567, allocations: 49.58 kB / 0.9025 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.888e-05/0.2568, allocations: 63.75 kB / 0.9026 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2568, allocations: 0 / 0.9026 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.374e-06/0.2568, allocations: 0 / 0.9026 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2569, allocations: 0 / 0.9026 GB, free: 61.63 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005238/0.2574, allocations: 379.7 kB / 0.903 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.2574, allocations: 11.97 kB / 0.903 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.2575, allocations: 38.73 kB / 0.903 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.2575, allocations: 8.844 kB / 0.903 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.2576, allocations: 176.2 kB / 0.9032 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.2577, allocations: 4.375 kB / 0.9032 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.2577, allocations: 8.375 kB / 0.9032 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.2579, allocations: 85.91 kB / 0.9033 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2579, allocations: 0 / 0.9033 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.2579, allocations: 7.984 kB / 0.9033 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2579, allocations: 4 kB / 0.9033 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.2581, allocations: 63.89 kB / 0.9034 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004679/0.2586, allocations: 316.6 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.2588, allocations: 70.55 kB / 0.9037 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.988e-05/0.2589, allocations: 32.97 kB / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.259, allocations: 0 / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/0.2593, allocations: 99.3 kB / 0.9039 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.904e-06/0.2593, allocations: 0 / 0.9039 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0004646/0.2597, allocations: 161.5 kB / 0.904 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.2598, allocations: 55.41 kB / 0.9041 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.2599, allocations: 117.8 kB / 0.9042 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.2599, allocations: 29.7 kB / 0.9042 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.26, allocations: 95.94 kB / 0.9043 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.26, allocations: 19.72 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.26, allocations: 0 / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.534e-05/0.2601, allocations: 322.8 kB / 0.9046 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.2602, allocations: 44.02 kB / 0.9047 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2604, allocations: 64.27 kB / 0.9047 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.2606, allocations: 100.2 kB / 0.9048 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2606, allocations: 4.375 kB / 0.9048 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002569/0.2608, allocations: 133.4 kB / 0.905 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.2609, allocations: 4 kB / 0.905 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.2609, allocations: 0 / 0.905 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.2609, allocations: 16.05 kB / 0.905 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.261, allocations: 16 kB / 0.905 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.261, allocations: 7.984 kB / 0.905 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.592e-05/0.2611, allocations: 23.86 kB / 0.905 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.2612, allocations: 4 kB / 0.905 GB, free: 58.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 9.496e-05/0.2613, allocations: 132.2 kB / 0.9051 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.2613, allocations: 7.906 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003045/0.2616, allocations: 130 kB / 0.9053 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2616, allocations: 0 / 0.9053 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2616, allocations: 0 / 0.9053 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.2616, allocations: 7.938 kB / 0.9053 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004806/0.2621, allocations: 398.5 kB / 0.9057 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2621, allocations: 0 / 0.9057 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-05/0.2622, allocations: 16 kB / 0.9057 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2622, allocations: 3.984 kB / 0.9057 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2622, allocations: 7.938 kB / 0.9057 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2622, allocations: 0 / 0.9057 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2622, allocations: 0 / 0.9057 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.2625, allocations: 219.4 kB / 0.9059 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.2626, allocations: 85.02 kB / 0.906 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.2626, allocations: 7.938 kB / 0.906 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.2627, allocations: 11.98 kB / 0.906 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.2628, allocations: 7.984 kB / 0.906 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-06/0.2628, allocations: 8 kB / 0.906 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.399e-05/0.2628, allocations: 99.2 kB / 0.9061 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2628, allocations: 0 / 0.9061 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000233/0.2631, allocations: 12 kB / 0.9061 GB, free: 57.66 MB / 0.6042 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 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,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.0005527/0.2636, allocations: 0.7597 MB / 0.9069 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002749/0.2639, allocations: 99.81 kB / 0.907 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2639, allocations: 288 / 0.907 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.2641, allocations: 44.03 kB / 0.907 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.2644, allocations: 15.88 kB / 0.907 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.2659, allocations: 1.538 MB / 0.9085 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.266, allocations: 0.6907 MB / 0.9092 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.627e-05/0.2661, allocations: 4 kB / 0.9092 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.2661, allocations: 23.42 kB / 0.9092 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2661, allocations: 0 / 0.9092 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01302/0.2791, allocations: 1.71 MB / 0.9109 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.2794, allocations: 227.2 kB / 0.9111 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.088, allocations: 0 / 0.9111 GB, free: 52.54 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)