Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.303/2.303, allocations: 216.8 MB / 229 MB, free: 15.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.424e-05/3.412e-05, allocations: 4 kB / 282 MB, free: 10.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 49.99 MB / 332 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4543/0.5726, allocations: 78.06 MB / 410 MB, free: 2.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.5729, allocations: 77.14 kB / 410.1 MB, free: 2.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006573/0.5795, allocations: 1.521 MB / 411.6 MB, free: 1.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5796, allocations: 0 / 411.6 MB, free: 1.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.5796, allocations: 4 kB / 411.6 MB, free: 1.027 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006745/0.5803, allocations: 469.4 kB / 412.1 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.5804, allocations: 12.03 kB / 412.1 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.528e-05/0.5804, allocations: 41.67 kB / 412.2 MB, free: 464 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.717e-05/0.5805, allocations: 16.05 kB / 412.2 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.581, allocations: 240.4 kB / 412.4 MB, free: 176 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.83e-05/0.5811, allocations: 58.84 kB / 412.5 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.5811, allocations: 7.984 kB / 412.5 MB, free: 100 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.5813, allocations: 70.98 kB / 412.5 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.5814, allocations: 4.875 kB / 412.5 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.5814, allocations: 10.25 kB / 412.6 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.5814, allocations: 0 / 412.6 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.5815, allocations: 23.06 kB / 412.6 MB, free: 8 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.5822, allocations: 318 kB / 412.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.5824, allocations: 51.78 kB / 412.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.174e-05/0.5825, allocations: 28.38 kB / 413 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.5825, allocations: 0 / 413 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.5828, allocations: 101.1 kB / 413.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.185e-06/0.5828, allocations: 0 / 413.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003183/0.5831, allocations: 101.7 kB / 413.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.5832, allocations: 59.39 kB / 413.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.5834, allocations: 132.4 kB / 413.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.5834, allocations: 33.45 kB / 413.4 MB, free: 15.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.539e-05/0.5835, allocations: 102.2 kB / 413.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.5835, allocations: 27.12 kB / 413.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-06/0.5836, allocations: 7 kB / 413.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5837, allocations: 324.8 kB / 413.8 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.475e-05/0.5838, allocations: 15.38 kB / 413.8 MB, free: 14.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.5839, allocations: 54.28 kB / 413.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.683e-05/0.584, allocations: 25.98 kB / 413.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.584, allocations: 0 / 413.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002663/0.5843, allocations: 123.1 kB / 414 MB, free: 14.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.5843, allocations: 4 kB / 414 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5843, allocations: 0 / 414 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.5844, allocations: 4 kB / 414.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.5845, allocations: 16.03 kB / 414.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.5846, allocations: 7.922 kB / 414.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.5847, allocations: 11.25 kB / 414.1 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.5847, allocations: 4.156 kB / 414.1 MB, free: 14.48 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.R_DIGITAL.y,R_DIGITAL.y,$PRE.Rhyst_DIGITAL.state,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.Rhyst.state,Rhyst.state) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001566/0.5849, allocations: 112.2 kB / 414.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.599e-05/0.5849, allocations: 18.7 kB / 414.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.585, allocations: 15.92 kB / 414.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.585, allocations: 3.938 kB / 414.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.585, allocations: 0 / 414.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.585, allocations: 0 / 414.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.5853, allocations: 199.5 kB / 414.4 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.5853, allocations: 8 kB / 414.4 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.5854, allocations: 7.984 kB / 414.4 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5854, allocations: 0 / 414.4 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.5854, allocations: 7.953 kB / 414.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5854, allocations: 0 / 414.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5855, allocations: 3.984 kB / 414.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.5857, allocations: 126.6 kB / 414.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.847e-05/0.5858, allocations: 88.92 kB / 414.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.5859, allocations: 4.062 kB / 414.7 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.586, allocations: 19.38 kB / 414.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.5861, allocations: 7.984 kB / 414.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.5861, allocations: 7.984 kB / 414.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001085/0.5862, allocations: 109.6 kB / 414.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5862, allocations: 3.938 kB / 414.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.5865, allocations: 23.12 kB / 414.8 MB, free: 13.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,Rhyst_DIGITAL.y,Rhyst_DIGITAL.state,R_DIGITAL.y,Rhyst.state) * Number of discrete states: 3 (Rhyst_DIGITAL.state,R_DIGITAL.u,Rhyst.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006101/0.5872, allocations: 0.6685 MB / 415.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002178/0.5874, allocations: 67.38 kB / 415.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5874, allocations: 0 / 415.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.5875, allocations: 31.8 kB / 415.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.5877, allocations: 10.83 kB / 415.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007636/0.5885, allocations: 175.2 kB / 415.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.5888, allocations: 0.7119 MB / 416.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.589, allocations: 24.53 kB / 416.5 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.814e-05/0.5891, allocations: 32.67 kB / 416.6 MB, free: 11.97 MB / 346.7 MB Notification: Performance of SimCode: time 3.637e-06/0.5891, allocations: 0 / 416.6 MB, free: 11.97 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.613, allocations: 2.08 MB / 418.6 MB, free: 9.965 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003666/0.6134, allocations: 174.4 kB / 418.8 MB, free: 9.742 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/2.944, allocations: 2.812 kB / 418.8 MB, free: 9.742 MB / 346.7 MB