Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.881/2.881, allocations: 287.5 MB / 302.4 MB, free: 8.371 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.001346/0.001346, allocations: 187.1 kB / 371 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.269/2.269, allocations: 205.4 MB / 0.6297 GB, free: 10.56 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.0009383/0.0009382, allocations: 89.34 kB / 0.743 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006398/0.0006402, allocations: 12.31 kB / 0.8659 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2332, allocations: 115.3 MB / 0.9785 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.000964/0.2342, allocations: 441.7 kB / 0.9789 GB, free: 27.81 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001621/0.2358, allocations: 1.169 MB / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.2359, allocations: 0 / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.2359, allocations: 3.938 kB / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.318e-05/0.236, allocations: 7.938 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005893/0.2366, allocations: 127.3 kB / 0.9802 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.2368, allocations: 91.81 kB / 0.9803 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.726e-05/0.2369, allocations: 11.98 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.237, allocations: 43.89 kB / 0.9803 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.2371, allocations: 31.89 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.2371, allocations: 4 kB / 0.9803 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.149e-05/0.2372, allocations: 16 kB / 0.9804 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.2372, allocations: 19.91 kB / 0.9804 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.377e-05/0.2373, allocations: 29.7 kB / 0.9804 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.2374, allocations: 84.05 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2375, allocations: 0 / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.284e-06/0.2375, allocations: 0 / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.2375, allocations: 0 / 0.9805 GB, free: 26.16 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005516/0.238, allocations: 392.9 kB / 0.9809 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2381, allocations: 12.02 kB / 0.9809 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.781e-05/0.2381, allocations: 30.56 kB / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.796e-05/0.2382, allocations: 15.91 kB / 0.9809 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.052e-05/0.2383, allocations: 174.9 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.2383, allocations: 8 kB / 0.9811 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.2384, allocations: 11.98 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.2386, allocations: 65.66 kB / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.2386, allocations: 4 kB / 0.9812 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.2387, allocations: 0 / 0.9812 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2387, allocations: 0 / 0.9812 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.239, allocations: 55.95 kB / 0.9812 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.2395, allocations: 336.5 kB / 0.9815 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.2397, allocations: 54.55 kB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.2399, allocations: 28.94 kB / 0.9816 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.2399, allocations: 4 kB / 0.9816 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.2402, allocations: 99.36 kB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/0.2403, allocations: 0 / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006232/0.2409, allocations: 149.5 kB / 0.9819 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2409, allocations: 59.34 kB / 0.9819 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.953e-05/0.2411, allocations: 109.8 kB / 0.982 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.2411, allocations: 33.7 kB / 0.9821 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.2412, allocations: 88.33 kB / 0.9821 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.2412, allocations: 19.7 kB / 0.9822 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.946e-05/0.2412, allocations: 8.375 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.738e-05/0.2413, allocations: 310.8 kB / 0.9825 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.2415, allocations: 59.95 kB / 0.9825 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.2418, allocations: 83.28 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.2421, allocations: 81.67 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2421, allocations: 4 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006199/0.2427, allocations: 203.2 kB / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/0.2428, allocations: 37.69 kB / 0.9829 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2428, allocations: 4 kB / 0.9829 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2428, allocations: 96 / 0.9829 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.243, allocations: 23.91 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.243, allocations: 4.016 kB / 0.9829 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.2434, allocations: 55.8 kB / 0.983 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.2434, allocations: 8 kB / 0.983 GB, free: 23.31 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001081/0.2435, allocations: 123.7 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.2436, allocations: 4 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004492/0.244, allocations: 129.9 kB / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2441, allocations: 4 kB / 0.9832 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2441, allocations: 0 / 0.9832 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2441, allocations: 7.953 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005522/0.2446, allocations: 366.5 kB / 0.9836 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2447, allocations: 4 kB / 0.9836 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.2448, allocations: 19.98 kB / 0.9836 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2448, allocations: 0 / 0.9836 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.2448, allocations: 4 kB / 0.9836 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.2448, allocations: 7.891 kB / 0.9836 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2448, allocations: 0 / 0.9836 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004402/0.2453, allocations: 207.5 kB / 0.9838 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.922e-05/0.2453, allocations: 85.02 kB / 0.9839 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.2454, allocations: 3.984 kB / 0.9839 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.2455, allocations: 8 kB / 0.9839 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.2456, allocations: 7.938 kB / 0.9839 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.2456, allocations: 8 kB / 0.9839 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.913e-05/0.2457, allocations: 91.27 kB / 0.984 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2457, allocations: 4 kB / 0.984 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003639/0.246, allocations: 24.38 kB / 0.9841 GB, free: 22.12 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000675/0.2467, allocations: 0.7596 MB / 0.9848 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005303/0.2473, allocations: 171.4 kB / 0.985 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2473, allocations: 0 / 0.985 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.2475, allocations: 52.08 kB / 0.985 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.2479, allocations: 19.98 kB / 0.985 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.2494, allocations: 0.6423 MB / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001373/0.2496, allocations: 0.6848 MB / 0.9863 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.84e-05/0.2497, allocations: 8.172 kB / 0.9863 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.2497, allocations: 15.44 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of SimCode: time 6.62e-07/0.2497, allocations: 0 / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02411/0.2738, allocations: 2.119 MB / 0.9884 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.2741, allocations: 197.2 kB / 0.9886 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/2.961, allocations: 0 / 0.9886 GB, free: 17.45 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)