Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009998/0.0009999, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.587/1.587, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005009, allocations: 17.69 kB / 0.6738 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2398, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009345/0.2407, allocations: 461.4 kB / 0.7878 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.2423, allocations: 1.162 MB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.582e-05/0.2423, allocations: 4 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.994e-05/0.2424, allocations: 3.984 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.86e-05/0.2424, allocations: 7.875 kB / 0.789 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005104/0.243, allocations: 124.6 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.2431, allocations: 95.8 kB / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.51e-05/0.2432, allocations: 11.92 kB / 0.7892 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2433, allocations: 39.92 kB / 0.7893 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.54e-05/0.2434, allocations: 39.88 kB / 0.7893 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.2434, allocations: 4 kB / 0.7893 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.611e-05/0.2435, allocations: 15.98 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.2435, allocations: 15.92 kB / 0.7893 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.798e-05/0.2436, allocations: 37.64 kB / 0.7894 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.2437, allocations: 76.11 kB / 0.7894 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2437, allocations: 0 / 0.7894 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2437, allocations: 0 / 0.7894 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.2437, allocations: 0 / 0.7894 GB, free: 9.73 MB / 0.6075 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.0005286/0.2442, allocations: 396.9 kB / 0.7898 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2443, allocations: 8.031 kB / 0.7898 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.2443, allocations: 38.55 kB / 0.7899 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.2444, allocations: 11.91 kB / 0.7899 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2445, allocations: 163 kB / 0.79 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.2446, allocations: 7.984 kB / 0.79 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.2446, allocations: 8 kB / 0.79 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.2448, allocations: 77.59 kB / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.2448, allocations: 0 / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.2448, allocations: 0 / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.2449, allocations: 0 / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.245, allocations: 55.95 kB / 0.7902 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00047/0.2455, allocations: 332.6 kB / 0.7905 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.2457, allocations: 62.48 kB / 0.7905 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.085e-05/0.2458, allocations: 32.92 kB / 0.7906 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.2458, allocations: 4 kB / 0.7906 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.246, allocations: 91.36 kB / 0.7907 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.246, allocations: 0 / 0.7907 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004068/0.2465, allocations: 157.8 kB / 0.7908 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.2465, allocations: 55.41 kB / 0.7909 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.491e-05/0.2466, allocations: 121.7 kB / 0.791 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.2466, allocations: 33.69 kB / 0.791 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.2467, allocations: 88.33 kB / 0.7911 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.2467, allocations: 15.72 kB / 0.7911 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.2468, allocations: 4 kB / 0.7911 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.701e-05/0.2469, allocations: 318.8 kB / 0.7914 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.247, allocations: 59.91 kB / 0.7915 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.2472, allocations: 79.39 kB / 0.7916 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.2473, allocations: 85.67 kB / 0.7916 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2474, allocations: 3.938 kB / 0.7916 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004034/0.2478, allocations: 199.2 kB / 0.7918 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.017e-05/0.2478, allocations: 45.75 kB / 0.7919 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2478, allocations: 0 / 0.7919 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2478, allocations: 0 / 0.7919 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.591e-05/0.2479, allocations: 12 kB / 0.7919 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.248, allocations: 3.984 kB / 0.7919 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.2482, allocations: 51.83 kB / 0.7919 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.2482, allocations: 15.98 kB / 0.792 GB, free: 6.875 MB / 0.6075 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 9.857e-05/0.2483, allocations: 124.2 kB / 0.7921 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.2483, allocations: 4 kB / 0.7921 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.2486, allocations: 126 kB / 0.7922 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2486, allocations: 0 / 0.7922 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2486, allocations: 4 kB / 0.7922 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2486, allocations: 0 / 0.7922 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004242/0.2491, allocations: 382.3 kB / 0.7926 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2491, allocations: 0 / 0.7926 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.2491, allocations: 15.98 kB / 0.7926 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.2492, allocations: 0 / 0.7926 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.2492, allocations: 0 / 0.7926 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2492, allocations: 0 / 0.7926 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2492, allocations: 3.953 kB / 0.7926 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002913/0.2495, allocations: 219.4 kB / 0.7928 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.2495, allocations: 81.58 kB / 0.7929 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.2496, allocations: 3.984 kB / 0.7929 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.487e-05/0.2496, allocations: 19.98 kB / 0.7929 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.2497, allocations: 7.984 kB / 0.7929 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2497, allocations: 3.953 kB / 0.7929 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.932e-05/0.2498, allocations: 95.2 kB / 0.793 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2498, allocations: 0 / 0.793 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002619/0.25, allocations: 20 kB / 0.793 GB, free: 5.684 MB / 0.6075 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.0005899/0.2506, allocations: 0.7513 MB / 0.7938 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003509/0.251, allocations: 179.3 kB / 0.7939 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.251, allocations: 0 / 0.7939 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.2511, allocations: 47.89 kB / 0.794 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.2514, allocations: 18.92 kB / 0.794 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.2526, allocations: 0.643 MB / 0.7946 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.2529, allocations: 0.6888 MB / 0.7953 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.268e-05/0.2529, allocations: 192 / 0.7953 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.253, allocations: 23.42 kB / 0.7953 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.253, allocations: 0 / 0.7953 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01396/0.267, allocations: 2.114 MB / 0.7974 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.2672, allocations: 189.3 kB / 0.7976 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.9, allocations: 0 / 0.7976 GB, free: 1.012 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) Environment - environmentSimulation: