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.001036/0.001036, 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.001054/0.001054, allocations: 194.3 kB / 16.53 MB, free: 6.699 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.436/1.436, allocations: 205.1 MB / 222.4 MB, free: 4.648 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.699/1.699, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001439/0.00144, allocations: 73.81 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2818, allocations: 114.6 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.00207/0.2839, allocations: 0.7636 MB / 0.7842 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.2857, allocations: 1.153 MB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.65e-05/0.2857, allocations: 4 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.488e-05/0.2858, allocations: 3.938 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.364e-05/0.2859, allocations: 15.86 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.2864, allocations: 134.9 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.2865, allocations: 131.8 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.2867, allocations: 20.17 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.187e-05/0.2868, allocations: 47.89 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.2869, allocations: 43.83 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.2869, allocations: 12 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.278e-05/0.287, allocations: 27.92 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.407e-05/0.287, allocations: 11.98 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.84e-05/0.2871, allocations: 51.78 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.2873, allocations: 123.9 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2873, allocations: 0 / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2873, allocations: 3.938 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.357e-06/0.2873, 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.0006332/0.288, allocations: 416.9 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/0.288, allocations: 8.031 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.2881, allocations: 38.73 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.604e-05/0.2881, allocations: 12.84 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.2883, allocations: 176.2 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.2883, allocations: 4.375 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.2883, allocations: 16.31 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.2886, allocations: 69.97 kB / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.2886, allocations: 0 / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.2886, allocations: 3.984 kB / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2886, allocations: 4 kB / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.2888, allocations: 47.95 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004833/0.2893, allocations: 344.6 kB / 0.7871 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2895, allocations: 58.55 kB / 0.7871 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.928e-05/0.2896, allocations: 36.95 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.2896, allocations: 3.984 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.2898, allocations: 95.39 kB / 0.7872 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.2899, allocations: 0 / 0.7872 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004242/0.2903, allocations: 145.5 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.2903, allocations: 55.41 kB / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.842e-05/0.2904, allocations: 125.7 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.2905, allocations: 29.7 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.181e-05/0.2905, allocations: 96.03 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.2906, allocations: 23.73 kB / 0.7877 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.2906, allocations: 37.7 kB / 0.7877 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2907, allocations: 322.8 kB / 0.788 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.2909, allocations: 59.91 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2911, allocations: 93.11 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.2914, allocations: 154.7 kB / 0.7883 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2914, allocations: 0 / 0.7883 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004515/0.2919, allocations: 211.2 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.2919, allocations: 37.7 kB / 0.7886 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.2919, allocations: 0 / 0.7886 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.292, allocations: 4 kB / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.2921, allocations: 19.86 kB / 0.7886 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.2921, allocations: 4 kB / 0.7886 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.2923, allocations: 35.95 kB / 0.7886 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.2924, allocations: 15.92 kB / 0.7886 GB, free: 7.777 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 0.0001043/0.2925, allocations: 121.9 kB / 0.7888 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.2925, allocations: 3.906 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.2928, allocations: 129.9 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2928, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2928, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2928, allocations: 4 kB / 0.7889 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000422/0.2932, allocations: 378.8 kB / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2933, allocations: 0 / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.797e-05/0.2933, allocations: 11.92 kB / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.2933, allocations: 0 / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.2933, allocations: 4 kB / 0.7893 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.2934, allocations: 3.938 kB / 0.7893 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2934, allocations: 0 / 0.7893 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.2937, allocations: 219.5 kB / 0.7895 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.2937, allocations: 96.94 kB / 0.7896 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.2937, allocations: 4 kB / 0.7896 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.481e-05/0.2938, allocations: 11.92 kB / 0.7896 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.2939, allocations: 4 kB / 0.7896 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.2939, allocations: 0 / 0.7896 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.064e-05/0.2939, allocations: 99.27 kB / 0.7897 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2939, allocations: 0 / 0.7897 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002544/0.2942, allocations: 24 kB / 0.7897 GB, free: 6.578 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.0006375/0.2948, allocations: 0.7553 MB / 0.7904 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003701/0.2952, allocations: 179.3 kB / 0.7906 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2952, allocations: 0 / 0.7906 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.2954, allocations: 47.89 kB / 0.7907 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.2957, allocations: 16.86 kB / 0.7907 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.2978, allocations: 1.697 MB / 0.7923 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.2982, allocations: 0.6992 MB / 0.793 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.237e-05/0.2982, allocations: 4 kB / 0.793 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.674e-05/0.2983, allocations: 23.42 kB / 0.793 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2983, allocations: 3.938 kB / 0.7931 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.317, allocations: 2.513 MB / 0.7955 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.881/8.198, allocations: 17.98 kB / 0.7955 GB, free: 0.5547 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)