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.352/1.352, allocations: 252 MB / 267 MB, free: 10.97 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.001791/0.001791, allocations: 177.9 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.812/1.812, allocations: 205.4 MB / 0.5777 GB, free: 20.2 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.0007668/0.0007667, allocations: 92.05 kB / 0.6823 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003549, allocations: 8.312 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2466, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001721/0.2483, allocations: 1.176 MB / 0.9015 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005296/0.2489, allocations: 236.2 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.249, allocations: 0 / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.97e-05/0.249, allocations: 3.938 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.2491, allocations: 7.922 kB / 0.9017 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.2494, allocations: 27.97 kB / 0.9017 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2495, allocations: 59.78 kB / 0.9018 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2496, allocations: 12.19 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.089e-05/0.2497, allocations: 23.86 kB / 0.9018 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.84e-05/0.2498, allocations: 27.84 kB / 0.9018 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.2498, allocations: 4 kB / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.2498, allocations: 0 / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.092e-05/0.2498, allocations: 15.97 kB / 0.9019 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.019e-05/0.2499, allocations: 41.62 kB / 0.9019 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.987e-05/0.25, allocations: 35.91 kB / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.25, allocations: 4 kB / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.054e-06/0.25, allocations: 0 / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.25, allocations: 4 kB / 0.9019 GB, free: 62.09 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.0005519/0.2506, allocations: 375.5 kB / 0.9023 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2506, allocations: 12.03 kB / 0.9023 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.2507, allocations: 34.56 kB / 0.9023 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.2507, allocations: 11.89 kB / 0.9024 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.2508, allocations: 178.9 kB / 0.9025 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.2508, allocations: 8 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.2509, allocations: 7.938 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.2511, allocations: 81.59 kB / 0.9026 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2511, allocations: 0 / 0.9026 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.2511, allocations: 0 / 0.9026 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.2511, allocations: 0 / 0.9026 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.2513, allocations: 71.94 kB / 0.9027 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004213/0.2518, allocations: 312.7 kB / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.252, allocations: 70.55 kB / 0.9031 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.2521, allocations: 36.97 kB / 0.9031 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.2521, allocations: 4 kB / 0.9031 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.2524, allocations: 91.27 kB / 0.9032 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.2524, allocations: 0 / 0.9032 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0004308/0.2528, allocations: 153.5 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.2529, allocations: 63.39 kB / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.456e-05/0.2529, allocations: 118 kB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.253, allocations: 29.69 kB / 0.9035 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.253, allocations: 95.91 kB / 0.9036 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.253, allocations: 19.81 kB / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.253, allocations: 0 / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.01e-05/0.2531, allocations: 322.8 kB / 0.9039 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.2532, allocations: 35.97 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.2534, allocations: 68.38 kB / 0.904 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.2535, allocations: 39.86 kB / 0.9041 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.2535, allocations: 4 kB / 0.9041 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002677/0.2538, allocations: 129.5 kB / 0.9042 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2538, allocations: 4 kB / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2538, allocations: 3.938 kB / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2538, allocations: 4.125 kB / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.2539, allocations: 23.94 kB / 0.9042 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.254, allocations: 4 kB / 0.9042 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2541, allocations: 23.83 kB / 0.9043 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.2541, allocations: 8 kB / 0.9043 GB, free: 59.45 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.17e-05/0.2542, allocations: 117.8 kB / 0.9044 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.2542, allocations: 8 kB / 0.9044 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.2545, allocations: 126 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2545, allocations: 0 / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.2545, allocations: 3.953 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2545, allocations: 0 / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/0.255, allocations: 410.4 kB / 0.9049 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.255, allocations: 0 / 0.9049 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.2551, allocations: 15.98 kB / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2551, allocations: 0 / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.2551, allocations: 3.953 kB / 0.9049 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2551, allocations: 4 kB / 0.9049 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2551, allocations: 48 / 0.9049 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.2554, allocations: 231.8 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.719e-05/0.2555, allocations: 81.11 kB / 0.9052 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.2555, allocations: 3.984 kB / 0.9052 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.2556, allocations: 19.94 kB / 0.9053 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.641e-05/0.2557, allocations: 11.98 kB / 0.9053 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.2557, allocations: 8 kB / 0.9053 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.671e-05/0.2557, allocations: 95.58 kB / 0.9054 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2557, allocations: 0 / 0.9054 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002461/0.256, allocations: 19.91 kB / 0.9054 GB, free: 58.2 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.0004789/0.2565, allocations: 0.7489 MB / 0.9061 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.2567, allocations: 87.89 kB / 0.9062 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2567, allocations: 0 / 0.9062 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.2569, allocations: 43.97 kB / 0.9062 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.2572, allocations: 24.73 kB / 0.9063 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.2582, allocations: 0.6035 MB / 0.9069 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.2584, allocations: 0.6946 MB / 0.9075 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.209e-05/0.2584, allocations: 4 kB / 0.9075 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.2585, allocations: 19.44 kB / 0.9076 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of SimCode: time 5.71e-07/0.2585, allocations: 0 / 0.9076 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.2709, allocations: 1.704 MB / 0.9092 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.2712, allocations: 215.7 kB / 0.9094 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/1.954, allocations: 2.188 kB / 0.9094 GB, free: 54.11 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)