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.48/1.48, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001317/0.001317, allocations: 173.7 kB / 326.5 MB, free: 2.25 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.09/2.09, allocations: 205.4 MB / 0.5775 GB, free: 20.31 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.0009592/0.0009594, allocations: 98.3 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003277, allocations: 14.86 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2145, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001427/0.216, allocations: 1.174 MB / 0.9013 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000418/0.2164, allocations: 234.3 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.2165, allocations: 0 / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.2165, allocations: 3.938 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.99e-05/0.2166, allocations: 15.97 kB / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.2167, allocations: 15.98 kB / 0.9016 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.444e-05/0.2168, allocations: 39.89 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2169, allocations: 20.17 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.043e-05/0.217, allocations: 19.92 kB / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.506e-05/0.2171, allocations: 31.83 kB / 0.9017 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.2171, allocations: 0 / 0.9017 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.171e-05/0.2171, allocations: 7.938 kB / 0.9017 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.242e-05/0.2171, allocations: 4 kB / 0.9017 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.2172, allocations: 41.64 kB / 0.9017 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.31e-05/0.2172, allocations: 39.89 kB / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2172, allocations: 0 / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2172, allocations: 0 / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.2172, allocations: 4 kB / 0.9018 GB, free: 62.19 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.0004908/0.2177, allocations: 376 kB / 0.9021 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.2178, allocations: 8.031 kB / 0.9021 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.2178, allocations: 38.56 kB / 0.9022 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.2179, allocations: 7.906 kB / 0.9022 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.218, allocations: 182.9 kB / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.218, allocations: 4 kB / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.218, allocations: 4 kB / 0.9024 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.2182, allocations: 81.59 kB / 0.9024 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.2183, allocations: 0 / 0.9024 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.2183, allocations: 0 / 0.9024 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2183, allocations: 4 kB / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.2185, allocations: 59.95 kB / 0.9025 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.2189, allocations: 324.6 kB / 0.9028 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.219, allocations: 66.55 kB / 0.9029 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.2191, allocations: 3.984 kB / 0.9029 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.2193, allocations: 91.41 kB / 0.903 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.2193, allocations: 3.938 kB / 0.903 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0004581/0.2198, allocations: 165.5 kB / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.2198, allocations: 51.41 kB / 0.9032 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.119e-05/0.2199, allocations: 118 kB / 0.9033 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.2199, allocations: 29.7 kB / 0.9033 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.2199, allocations: 91.91 kB / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.22, allocations: 19.8 kB / 0.9034 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.22, allocations: 4 kB / 0.9034 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.387e-05/0.22, allocations: 318.8 kB / 0.9037 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.765e-05/0.2201, allocations: 35.97 kB / 0.9038 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.2202, allocations: 64.27 kB / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.86e-05/0.2203, allocations: 43.92 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2203, allocations: 0 / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002477/0.2206, allocations: 133.5 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.2206, allocations: 4 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2206, allocations: 0 / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.2206, allocations: 4 kB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.803e-05/0.2207, allocations: 23.92 kB / 0.904 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.2208, allocations: 7.953 kB / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.003e-05/0.2209, allocations: 31.95 kB / 0.9041 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2209, allocations: 4 kB / 0.9041 GB, free: 59.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.635e-05/0.221, allocations: 117.8 kB / 0.9042 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.221, allocations: 4 kB / 0.9042 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/0.2213, allocations: 130 kB / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.2213, allocations: 112 / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2213, allocations: 3.938 kB / 0.9043 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2213, allocations: 7.953 kB / 0.9043 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.2217, allocations: 406.4 kB / 0.9047 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2218, allocations: 0 / 0.9047 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.083e-05/0.2218, allocations: 11.98 kB / 0.9047 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2218, allocations: 0 / 0.9047 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.2219, allocations: 8 kB / 0.9047 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.2219, allocations: 4.328 kB / 0.9047 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2219, allocations: 0 / 0.9047 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.2221, allocations: 223.9 kB / 0.9049 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.2222, allocations: 81.09 kB / 0.905 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.2222, allocations: 7.938 kB / 0.905 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.2223, allocations: 15.98 kB / 0.905 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.2223, allocations: 15.88 kB / 0.9051 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.2224, allocations: 4 kB / 0.9051 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.151e-05/0.2224, allocations: 91.27 kB / 0.9051 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2e-07/0.2224, allocations: 0 / 0.9051 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002293/0.2226, allocations: 23.91 kB / 0.9052 GB, free: 58.35 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 (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.000431/0.2231, allocations: 0.7477 MB / 0.9059 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.2233, allocations: 83.88 kB / 0.906 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2233, allocations: 0 / 0.906 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2234, allocations: 48.17 kB / 0.906 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.2236, allocations: 19.94 kB / 0.906 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.2247, allocations: 1.188 MB / 0.9072 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.2249, allocations: 0.6946 MB / 0.9079 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.788e-05/0.225, allocations: 7.984 kB / 0.9079 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.917e-05/0.225, allocations: 19.44 kB / 0.9079 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of SimCode: time 4.91e-07/0.225, allocations: 0 / 0.9079 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.2362, allocations: 1.696 MB / 0.9096 GB, free: 53.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.2364, allocations: 203.3 kB / 0.9098 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.5/1.737, allocations: 64 / 0.9098 GB, free: 53.67 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)