Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.001417/0.001417, 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.00154/0.00154, allocations: 192.7 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.365/1.365, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.663/1.663, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001436/0.001436, allocations: 70.12 kB / 0.6716 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1936, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001901/0.1955, allocations: 0.7675 MB / 0.7842 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1968, allocations: 1.157 MB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.578e-05/0.1968, allocations: 0 / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.293e-05/0.1969, allocations: 11.86 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.21e-05/0.1969, allocations: 7.938 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.1974, allocations: 139 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.1975, allocations: 123.8 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.822e-05/0.1977, allocations: 24.17 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.354e-05/0.1977, allocations: 51.83 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.013e-05/0.1978, allocations: 43.83 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.1978, allocations: 12 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.255e-05/0.1979, allocations: 23.98 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.1979, allocations: 15.98 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.198, allocations: 51.77 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.1982, allocations: 120 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1982, allocations: 0 / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1982, allocations: 0 / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.1982, allocations: 0 / 0.786 GB, free: 10.82 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004946/0.1987, allocations: 420.9 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.1987, allocations: 8.031 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.915e-05/0.1988, allocations: 38.75 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.1988, allocations: 8.844 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.102e-05/0.1989, allocations: 176.2 kB / 0.7866 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.1989, allocations: 12.36 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.1989, allocations: 12.38 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.1991, allocations: 69.97 kB / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.1991, allocations: 0 / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1992, allocations: 8 kB / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1992, allocations: 0 / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.1993, allocations: 43.95 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004233/0.1998, allocations: 348.6 kB / 0.7871 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.1999, allocations: 58.55 kB / 0.7871 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2001, allocations: 41.05 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.2001, allocations: 3.938 kB / 0.7872 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.2003, allocations: 87.34 kB / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.2003, allocations: 0 / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004094/0.2007, allocations: 153.5 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.2008, allocations: 55.41 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.496e-05/0.2008, allocations: 125.7 kB / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.2009, allocations: 25.7 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.2009, allocations: 100 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.201, allocations: 23.73 kB / 0.7877 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.201, allocations: 41.69 kB / 0.7877 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.2011, allocations: 318.8 kB / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.2013, allocations: 55.95 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.2015, allocations: 93.55 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.2017, allocations: 146.8 kB / 0.7883 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2017, allocations: 4 kB / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004073/0.2021, allocations: 215.2 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.2022, allocations: 37.69 kB / 0.7886 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2022, allocations: 4 kB / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.2022, allocations: 0 / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.071e-05/0.2023, allocations: 19.92 kB / 0.7886 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2023, allocations: 0 / 0.7886 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.2025, allocations: 35.95 kB / 0.7886 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2026, allocations: 11.94 kB / 0.7886 GB, free: 7.785 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.607e-05/0.2026, allocations: 121.9 kB / 0.7888 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.2027, allocations: 7.906 kB / 0.7888 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002728/0.2029, allocations: 125.9 kB / 0.7889 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.203, allocations: 4 kB / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.203, allocations: 0 / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.203, allocations: 0 / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/0.2034, allocations: 386.3 kB / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2034, allocations: 0 / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.892e-05/0.2034, allocations: 8 kB / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2034, allocations: 0 / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.2035, allocations: 7.984 kB / 0.7893 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2035, allocations: 3.938 kB / 0.7893 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2035, allocations: 0 / 0.7893 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.2037, allocations: 215.4 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.2038, allocations: 84.95 kB / 0.7896 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.2038, allocations: 0 / 0.7896 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.2039, allocations: 11.92 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.2039, allocations: 7.984 kB / 0.7896 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.204, allocations: 8 kB / 0.7896 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.204, allocations: 99.27 kB / 0.7897 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.204, allocations: 0 / 0.7897 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002453/0.2043, allocations: 23.98 kB / 0.7897 GB, free: 6.586 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005457/0.2048, allocations: 0.7558 MB / 0.7904 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003735/0.2052, allocations: 191.2 kB / 0.7906 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2052, allocations: 0 / 0.7906 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.2053, allocations: 35.98 kB / 0.7907 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2056, allocations: 19.92 kB / 0.7907 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.2079, allocations: 1.699 MB / 0.7923 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.2083, allocations: 0.6953 MB / 0.793 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.665e-05/0.2084, allocations: 7.984 kB / 0.793 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/0.2084, allocations: 19.44 kB / 0.793 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of SimCode: time 3.91e-07/0.2084, allocations: 3.938 kB / 0.793 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.2282, allocations: 2.517 MB / 0.7955 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/7.569, allocations: 3.75 kB / 0.7955 GB, free: 0.5664 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)