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.593/2.593, allocations: 287.3 MB / 302.3 MB, free: 8.324 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.001573/0.001573, allocations: 178.3 kB / 370.8 MB, free: 10.88 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.18/2.18, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001116/0.001115, allocations: 97.7 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006388/0.000639, allocations: 15.22 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2308, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001347/0.2323, allocations: 449.8 kB / 0.9787 GB, free: 27.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002703/0.235, allocations: 1.142 MB / 0.9798 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.2352, allocations: 0 / 0.9798 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.518e-05/0.2352, allocations: 3.938 kB / 0.9798 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.2354, allocations: 11.97 kB / 0.9799 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.2364, allocations: 126.6 kB / 0.98 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.2366, allocations: 59.92 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.2368, allocations: 11.94 kB / 0.98 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.2369, allocations: 43.89 kB / 0.9801 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.2371, allocations: 35.89 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4e-05/0.2371, allocations: 4 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.2373, allocations: 15.98 kB / 0.9801 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.398e-05/0.2373, allocations: 11.92 kB / 0.9801 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.855e-05/0.2374, allocations: 37.69 kB / 0.9802 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.2376, allocations: 76.11 kB / 0.9803 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2377, allocations: 4 kB / 0.9803 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.815e-06/0.2377, allocations: 0 / 0.9803 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.2377, allocations: 0 / 0.9803 GB, free: 26.26 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.000785/0.2385, allocations: 396.9 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.2386, allocations: 12.02 kB / 0.9807 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.2386, allocations: 30.56 kB / 0.9807 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.025e-05/0.2387, allocations: 7.906 kB / 0.9807 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.2389, allocations: 186.9 kB / 0.9809 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.2389, allocations: 4 kB / 0.9809 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.239, allocations: 8 kB / 0.9809 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.2394, allocations: 65.66 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2395, allocations: 0 / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.2395, allocations: 4 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2395, allocations: 0 / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.24, allocations: 55.95 kB / 0.981 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007795/0.2408, allocations: 328.5 kB / 0.9813 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.2412, allocations: 62.55 kB / 0.9814 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.2413, allocations: 0 / 0.9814 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004612/0.2417, allocations: 95.52 kB / 0.9815 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 3.647e-06/0.2418, allocations: 0 / 0.9815 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0009837/0.2428, allocations: 149.5 kB / 0.9816 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.2428, allocations: 67.34 kB / 0.9817 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.243, allocations: 109.8 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.2431, allocations: 37.64 kB / 0.9818 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.2432, allocations: 88.33 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.2433, allocations: 23.69 kB / 0.9819 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.2433, allocations: 4 kB / 0.9819 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.574e-05/0.2434, allocations: 310.8 kB / 0.9822 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003883/0.2438, allocations: 59.95 kB / 0.9823 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/0.2442, allocations: 83.34 kB / 0.9824 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.2447, allocations: 85.67 kB / 0.9824 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2447, allocations: 0 / 0.9824 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00102/0.2457, allocations: 199.2 kB / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.264e-05/0.2458, allocations: 45.75 kB / 0.9827 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.2458, allocations: 4 kB / 0.9827 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.2459, allocations: 0 / 0.9827 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.2461, allocations: 19.92 kB / 0.9827 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2461, allocations: 3.953 kB / 0.9827 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006129/0.2468, allocations: 51.86 kB / 0.9827 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.2469, allocations: 8 kB / 0.9828 GB, free: 23.44 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.0001532/0.247, allocations: 117.8 kB / 0.9829 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.2471, allocations: 4 kB / 0.9829 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007205/0.2478, allocations: 133.9 kB / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.2479, allocations: 0 / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.2479, allocations: 0 / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.2479, allocations: 3.953 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009234/0.2489, allocations: 370.8 kB / 0.9834 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.2489, allocations: 0 / 0.9834 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.2491, allocations: 15.98 kB / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.2492, allocations: 0 / 0.9834 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.2492, allocations: 4 kB / 0.9834 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.2492, allocations: 80 / 0.9834 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.2492, allocations: 7.938 kB / 0.9834 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.2499, allocations: 215.4 kB / 0.9836 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.751e-05/0.25, allocations: 81.11 kB / 0.9837 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.2501, allocations: 7.969 kB / 0.9837 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.2503, allocations: 15.94 kB / 0.9837 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.769e-05/0.2504, allocations: 12.41 kB / 0.9837 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2505, allocations: 4 kB / 0.9837 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.831e-05/0.2506, allocations: 95.2 kB / 0.9838 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.41e-07/0.2506, allocations: 0 / 0.9838 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000648/0.2513, allocations: 20 kB / 0.9838 GB, free: 22.25 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.001111/0.2524, allocations: 0.7565 MB / 0.9845 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008093/0.2533, allocations: 175.3 kB / 0.9847 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.2533, allocations: 0 / 0.9847 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.2536, allocations: 43.97 kB / 0.9848 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.2541, allocations: 13.83 kB / 0.9848 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.2553, allocations: 0.8308 MB / 0.9856 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.2555, allocations: 0.6887 MB / 0.9863 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.417e-05/0.2556, allocations: 4.188 kB / 0.9863 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.06e-05/0.2557, allocations: 19.44 kB / 0.9863 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.603e-06/0.2558, allocations: 4 kB / 0.9863 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.2804, allocations: 2.092 MB / 0.9883 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002758/0.2808, allocations: 189 kB / 0.9885 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.379/2.66, allocations: 0 / 0.9885 GB, free: 17.42 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)