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.001422/0.001421, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 196.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.685/1.685, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001376/0.001376, allocations: 70.53 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2061, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002029/0.2082, allocations: 0.7441 MB / 0.7842 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2096, allocations: 1.177 MB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.545e-05/0.2097, allocations: 4 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.15e-05/0.2097, allocations: 3.938 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.84e-05/0.2098, allocations: 7.922 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.2103, allocations: 138.8 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.2105, allocations: 123.7 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.571e-05/0.2106, allocations: 19.98 kB / 0.7856 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.584e-05/0.2106, allocations: 47.84 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.685e-05/0.2107, allocations: 43.88 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.2108, allocations: 8 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.971e-05/0.2108, allocations: 19.98 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.115e-05/0.2109, allocations: 12 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.59e-05/0.2109, allocations: 43.78 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.2111, allocations: 119.9 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2111, allocations: 0 / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2111, allocations: 4 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2111, allocations: 4 kB / 0.7859 GB, free: 10.88 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.00054/0.2117, allocations: 397 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2117, allocations: 16.02 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.2118, allocations: 34.75 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.143e-05/0.2118, allocations: 4.938 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.2119, allocations: 168.3 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.212, allocations: 12.31 kB / 0.7865 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.212, allocations: 12.38 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.2122, allocations: 66.22 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2122, allocations: 7.922 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.2122, allocations: 0 / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2122, allocations: 4 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.2124, allocations: 39.94 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.2129, allocations: 336.6 kB / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.2131, allocations: 54.48 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.2132, allocations: 24.94 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.2132, allocations: 0 / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/0.2134, allocations: 87.36 kB / 0.7871 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2134, allocations: 0 / 0.7871 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.00043/0.2139, allocations: 133.6 kB / 0.7873 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.2139, allocations: 55.39 kB / 0.7873 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.214, allocations: 117.8 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.2141, allocations: 33.7 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.2141, allocations: 88.22 kB / 0.7875 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.2141, allocations: 20.16 kB / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.2142, allocations: 41.7 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2143, allocations: 314.8 kB / 0.7879 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.2145, allocations: 59.89 kB / 0.788 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.2147, allocations: 79.33 kB / 0.788 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.2149, allocations: 129 kB / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2149, allocations: 0 / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004098/0.2154, allocations: 203.1 kB / 0.7884 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.2154, allocations: 33.7 kB / 0.7884 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2154, allocations: 3.984 kB / 0.7884 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2154, allocations: 4 kB / 0.7884 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.326e-05/0.2155, allocations: 8 kB / 0.7884 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2155, allocations: 3.984 kB / 0.7884 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.2158, allocations: 31.97 kB / 0.7884 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.2158, allocations: 16.05 kB / 0.7884 GB, free: 8.004 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.12e-05/0.2159, allocations: 128.7 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.2159, allocations: 7.906 kB / 0.7886 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002834/0.2162, allocations: 114 kB / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2162, allocations: 0 / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2162, allocations: 0 / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2162, allocations: 0 / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004007/0.2166, allocations: 366.4 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2166, allocations: 8 kB / 0.789 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.2167, allocations: 7.984 kB / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2167, allocations: 0 / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.2167, allocations: 4 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2167, allocations: 0 / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2167, allocations: 3.938 kB / 0.7891 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.217, allocations: 211.9 kB / 0.7893 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.2171, allocations: 77.11 kB / 0.7893 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.2171, allocations: 3.938 kB / 0.7893 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.2172, allocations: 7.984 kB / 0.7893 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.2172, allocations: 15.91 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.2173, allocations: 4 kB / 0.7894 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.397e-05/0.2173, allocations: 95.31 kB / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2173, allocations: 0 / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002506/0.2176, allocations: 23.98 kB / 0.7895 GB, free: 6.844 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005696/0.2181, allocations: 0.7397 MB / 0.7902 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003766/0.2185, allocations: 167.5 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2185, allocations: 0 / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.2187, allocations: 43.91 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2189, allocations: 21 kB / 0.7904 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.2208, allocations: 1.634 MB / 0.792 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.2211, allocations: 0.6846 MB / 0.7927 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.966e-05/0.2211, allocations: 4 kB / 0.7927 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.916e-05/0.2211, allocations: 19.42 kB / 0.7927 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2211, allocations: 0 / 0.7927 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.2398, allocations: 2.419 MB / 0.7951 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.235/7.475, allocations: 8.078 kB / 0.7951 GB, free: 1.031 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/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)