Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadModel(Modelica_Synchronous): time 2.165/2.165, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.602e-05, allocations: 8 kB / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.08808, allocations: 50.36 MB / 334.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3579/0.4461, allocations: 79.54 MB / 414.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4463, allocations: 60.22 kB / 414.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0104/0.4567, allocations: 2.262 MB / 416.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.631e-06/0.4568, allocations: 0 / 416.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.4568, allocations: 3.938 kB / 416.5 MB, free: 12.69 MB / 346.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.0006994/0.4575, allocations: 410.9 kB / 416.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.4576, allocations: 12.03 kB / 416.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.4576, allocations: 11.81 kB / 417 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.4579, allocations: 208.9 kB / 417.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.458, allocations: 19.06 kB / 417.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.458, allocations: 7.312 kB / 417.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4585, allocations: 195.4 kB / 417.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4585, allocations: 3.984 kB / 417.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.4586, allocations: 4 kB / 417.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.265e-06/0.4586, allocations: 3.938 kB / 417.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.4588, allocations: 60.97 kB / 417.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006764/0.4595, allocations: 349.3 kB / 417.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.4597, allocations: 124.9 kB / 417.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.4599, allocations: 64.27 kB / 418 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.4599, allocations: 4 kB / 418 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001948/0.4602, allocations: 89.38 kB / 418.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 3.459e-06/0.4602, allocations: 3.938 kB / 418.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004642/0.4606, allocations: 174.2 kB / 418.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/0.4608, allocations: 87.97 kB / 418.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.4609, allocations: 135.5 kB / 418.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.461, allocations: 32.77 kB / 418.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.4611, allocations: 163.7 kB / 418.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.192e-05/0.4612, allocations: 34.55 kB / 418.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-06/0.4612, allocations: 0 / 418.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4614, allocations: 322.5 kB / 419 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.086e-05/0.4615, allocations: 30.69 kB / 419 MB, free: 10.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.4616, allocations: 91.94 kB / 419.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.4618, allocations: 49.22 kB / 419.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.4618, allocations: 0 / 419.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003368/0.4621, allocations: 153 kB / 419.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.4622, allocations: 11 kB / 419.3 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.4622, allocations: 4 kB / 419.3 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.4622, allocations: 4 kB / 419.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.4624, allocations: 23.92 kB / 419.4 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.4625, allocations: 4 kB / 419.4 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.4627, allocations: 19.08 kB / 419.4 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.4628, allocations: 4 kB / 419.4 MB, free: 9.832 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.0002731/0.4631, allocations: 135.8 kB / 419.5 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.4634, allocations: 71.83 kB / 419.6 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.859e-05/0.4635, allocations: 15.23 kB / 419.6 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.4635, allocations: 16 kB / 419.6 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.441e-06/0.4635, allocations: 0 / 419.6 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.286e-06/0.4636, allocations: 0 / 419.6 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.4647, allocations: 438 kB / 420 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.88e-06/0.4647, allocations: 0 / 420 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001964/0.4649, allocations: 20.11 kB / 420.1 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/0.4649, allocations: 4 kB / 420.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.465, allocations: 11.3 kB / 420.1 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.833e-06/0.465, allocations: 0 / 420.1 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.313e-06/0.465, allocations: 4 kB / 420.1 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.4656, allocations: 287.1 kB / 420.4 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/0.4657, allocations: 92.92 kB / 420.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.4657, allocations: 4 kB / 420.5 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.4659, allocations: 15.23 kB / 420.5 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.466, allocations: 11.94 kB / 420.5 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.466, allocations: 4 kB / 420.5 MB, free: 8.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.4662, allocations: 129.6 kB / 420.6 MB, free: 8.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.038e-06/0.4662, allocations: 0 / 420.6 MB, free: 8.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004033/0.4666, allocations: 27.48 kB / 420.6 MB, free: 8.578 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.0001578/0.4668, allocations: 104 kB / 420.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003046/0.4671, allocations: 107.7 kB / 420.8 MB, free: 8.387 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.764e-06/0.4671, allocations: 4 kB / 420.9 MB, free: 8.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.4672, allocations: 40.86 kB / 420.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.4676, allocations: 42.45 kB / 420.9 MB, free: 8.316 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.4682, allocations: 225.5 kB / 421.2 MB, free: 8.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.4687, allocations: 0.7266 MB / 421.9 MB, free: 7.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.018e-05/0.4688, allocations: 15.42 kB / 421.9 MB, free: 7.324 MB / 346.7 MB Notification: Performance of SimCode: time 1.692e-06/0.4688, allocations: 0 / 421.9 MB, free: 7.324 MB / 346.7 MB Notification: Performance of Templates: time 0.004277/0.4731, allocations: 1.574 MB / 423.5 MB, free: 5.766 MB / 346.7 MB