Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica_Synchronous): time 1.97/1.97, allocations: 218.4 MB / 225.8 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.981e-05, allocations: 0 / 278.4 MB, free: 13.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09384, allocations: 50.37 MB / 328.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.3902, allocations: 79.02 MB / 407.8 MB, free: 2.883 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3905, allocations: 58.22 kB / 407.9 MB, free: 2.855 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01051/0.401, allocations: 1.999 MB / 409.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.4011, allocations: 3.828 kB / 409.9 MB, free: 1.172 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007405/0.4018, allocations: 419.7 kB / 410.3 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4019, allocations: 8.031 kB / 410.3 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.4019, allocations: 15.81 kB / 410.3 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.4023, allocations: 205.9 kB / 410.5 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.4023, allocations: 7.984 kB / 410.5 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.4023, allocations: 4 kB / 410.5 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002064/0.4025, allocations: 69.03 kB / 410.6 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.403, allocations: 184 kB / 410.7 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.356e-06/0.403, allocations: 0 / 410.7 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.403, allocations: 0 / 410.7 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.403, allocations: 7.906 kB / 410.8 MB, free: 236 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.4037, allocations: 315.2 kB / 411.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.404, allocations: 125.5 kB / 411.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.4041, allocations: 63.38 kB / 411.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.4042, allocations: 0 / 411.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.4044, allocations: 81.56 kB / 411.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.866e-06/0.4044, allocations: 3.938 kB / 411.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003986/0.4048, allocations: 144.2 kB / 411.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.4049, allocations: 92.42 kB / 411.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.4051, allocations: 132 kB / 411.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/0.4051, allocations: 28.64 kB / 411.7 MB, free: 15.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.4052, allocations: 91.11 kB / 411.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.604e-05/0.4053, allocations: 26.73 kB / 411.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-06/0.4053, allocations: 96 / 411.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4055, allocations: 333.4 kB / 412.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.666e-05/0.4056, allocations: 25.05 kB / 412.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.4057, allocations: 98.56 kB / 412.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.4058, allocations: 42.11 kB / 412.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.571e-06/0.4059, allocations: 0 / 412.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00034/0.4062, allocations: 150.4 kB / 412.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.4062, allocations: 7.984 kB / 412.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.4063, allocations: 4 kB / 412.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.4063, allocations: 4 kB / 412.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.4065, allocations: 19.98 kB / 412.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.4065, allocations: 7.938 kB / 412.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.4067, allocations: 11.91 kB / 412.5 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.4067, allocations: 4 kB / 412.5 MB, free: 14.46 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "Connector of Real output signals" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,sampler.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001954/0.4069, allocations: 124.9 kB / 412.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.4071, allocations: 77.17 kB / 412.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.4072, allocations: 16.3 kB / 412.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-06/0.4072, allocations: 0 / 412.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.4072, allocations: 4 kB / 412.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.492e-06/0.4072, allocations: 112 / 412.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006258/0.4078, allocations: 380.6 kB / 413.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.648e-06/0.4079, allocations: 0 / 413.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.408, allocations: 23.73 kB / 413.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.009e-06/0.408, allocations: 0 / 413.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.4081, allocations: 4 kB / 413.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/0.4081, allocations: 7.922 kB / 413.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.414e-06/0.4081, allocations: 3.906 kB / 413.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004275/0.4085, allocations: 260.3 kB / 413.4 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.955e-05/0.4086, allocations: 85.02 kB / 413.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.275e-05/0.4087, allocations: 11.73 kB / 413.5 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.4089, allocations: 8 kB / 413.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.409, allocations: 7.891 kB / 413.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.409, allocations: 4 kB / 413.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001426/0.4091, allocations: 129.7 kB / 413.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000467/0.4096, allocations: 16.09 kB / 413.7 MB, free: 13.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 (sampler.sampleTrigger,stateSpace2.sampleTrigger,$whenCondition2,$whenCondition1,stateSpace2.firstTrigger,stateSpace2.y[1],stateSpace2.x[1],sampler.firstTrigger,sampler.y) * Number of discrete states: 1 (stateSpace2.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001792/0.4098, allocations: 110.5 kB / 413.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002814/0.4101, allocations: 102 kB / 413.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.741e-06/0.4101, allocations: 0 / 413.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.863e-05/0.4102, allocations: 36.11 kB / 413.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.4106, allocations: 42.31 kB / 414 MB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006495/0.4113, allocations: 196.3 kB / 414.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.4118, allocations: 0.7381 MB / 414.9 MB, free: 12.1 MB / 346.7 MB Notification: Performance of SimCode: time 1.748e-06/0.4118, allocations: 0 / 414.9 MB, free: 12.1 MB / 346.7 MB Notification: Performance of Templates: time 0.004959/0.4168, allocations: 1.116 MB / 416 MB, free: 11 MB / 346.7 MB