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.001012/0.001016, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001171/0.001171, allocations: 190.9 kB / 16.25 MB, free: 6.625 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.338/1.338, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.661/1.661, allocations: 292.3 MB / 0.5486 GB, free: 13.59 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.001313/0.001313, allocations: 68.55 kB / 0.6711 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2086, allocations: 114.5 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001928/0.2105, allocations: 0.805 MB / 0.7838 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.2119, allocations: 1.181 MB / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.314e-05/0.212, allocations: 0 / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.375e-05/0.212, allocations: 7.938 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.2121, allocations: 15.91 kB / 0.7849 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.2126, allocations: 118.9 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.2127, allocations: 127.8 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.152e-05/0.2128, allocations: 11.98 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.835e-05/0.2129, allocations: 43.91 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.323e-05/0.213, allocations: 43.88 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.213, allocations: 8 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.61e-05/0.2131, allocations: 31.98 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.861e-05/0.2131, allocations: 4 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.121e-05/0.2132, allocations: 47.83 kB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.2134, allocations: 115.9 kB / 0.7855 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.2134, allocations: 4 kB / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2134, allocations: 0 / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.553e-05/0.2134, allocations: 0 / 0.7855 GB, free: 11.21 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.0005859/0.214, allocations: 405 kB / 0.7859 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2141, allocations: 8.031 kB / 0.7859 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.2141, allocations: 30.75 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.2142, allocations: 12.94 kB / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.2143, allocations: 168.2 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.2143, allocations: 8.375 kB / 0.7861 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.2143, allocations: 12.36 kB / 0.7861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.2145, allocations: 62.22 kB / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2146, allocations: 3.938 kB / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.2146, allocations: 4 kB / 0.7862 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2146, allocations: 3.984 kB / 0.7862 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.2148, allocations: 47.89 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.2152, allocations: 336.5 kB / 0.7865 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.2154, allocations: 50.55 kB / 0.7866 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.964e-05/0.2155, allocations: 24.94 kB / 0.7866 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2155, allocations: 4 kB / 0.7866 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.2157, allocations: 87.3 kB / 0.7867 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.2157, allocations: 0 / 0.7867 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003997/0.2161, allocations: 133.6 kB / 0.7868 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.2162, allocations: 63.39 kB / 0.7869 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.181e-05/0.2163, allocations: 113.8 kB / 0.787 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.2163, allocations: 29.7 kB / 0.787 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.2164, allocations: 92.2 kB / 0.7871 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.2164, allocations: 19.8 kB / 0.7871 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.471e-05/0.2165, allocations: 29.7 kB / 0.7871 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2166, allocations: 322.8 kB / 0.7874 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2167, allocations: 51.89 kB / 0.7875 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.2169, allocations: 87.33 kB / 0.7876 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002496/0.2171, allocations: 125 kB / 0.7877 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2172, allocations: 8 kB / 0.7877 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003951/0.2176, allocations: 191.2 kB / 0.7879 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.2176, allocations: 41.69 kB / 0.7879 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2176, allocations: 0 / 0.7879 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.2176, allocations: 4 kB / 0.7879 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.76e-05/0.2177, allocations: 11.98 kB / 0.7879 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.2178, allocations: 0 / 0.7879 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.218, allocations: 32.03 kB / 0.788 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.218, allocations: 19.92 kB / 0.788 GB, free: 8.34 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 8.762e-05/0.2181, allocations: 124.6 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.2181, allocations: 8.375 kB / 0.7881 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002781/0.2184, allocations: 110 kB / 0.7882 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2184, allocations: 4 kB / 0.7882 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2184, allocations: 4 kB / 0.7882 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.2184, allocations: 0 / 0.7882 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003972/0.2188, allocations: 370.4 kB / 0.7886 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2188, allocations: 0 / 0.7886 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.802e-05/0.2189, allocations: 7.984 kB / 0.7886 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.2189, allocations: 4 kB / 0.7886 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.2189, allocations: 0 / 0.7886 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2189, allocations: 4 kB / 0.7886 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2189, allocations: 3.938 kB / 0.7886 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.2192, allocations: 207.3 kB / 0.7888 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.2193, allocations: 77.11 kB / 0.7889 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.2193, allocations: 4 kB / 0.7889 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.896e-05/0.2194, allocations: 11.98 kB / 0.7889 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.2194, allocations: 11.92 kB / 0.7889 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.2194, allocations: 4 kB / 0.7889 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.079e-05/0.2195, allocations: 87.28 kB / 0.789 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2195, allocations: 0 / 0.789 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002557/0.2198, allocations: 23.98 kB / 0.789 GB, free: 7.191 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.000569/0.2203, allocations: 0.7475 MB / 0.7897 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003502/0.2207, allocations: 175.3 kB / 0.7899 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.2207, allocations: 0 / 0.7899 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.2208, allocations: 31.97 kB / 0.7899 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2211, allocations: 28.83 kB / 0.79 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.2229, allocations: 1.635 MB / 0.7916 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.2231, allocations: 0.6885 MB / 0.7922 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.895e-05/0.2232, allocations: 7.938 kB / 0.7922 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/0.2232, allocations: 27.42 kB / 0.7923 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2232, allocations: 0 / 0.7923 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01116/0.2344, allocations: 2.27 MB / 0.7945 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.2346, allocations: 207.3 kB / 0.7947 GB, free: 1.297 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/1.933, allocations: 0 / 0.7947 GB, free: 1.297 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)