Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadModel(Modelica_Synchronous): time 2.016/2.016, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.468e-05, allocations: 8 kB / 284.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 50.36 MB / 334.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5035/0.6117, allocations: 79.47 MB / 414.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001817/0.6119, allocations: 68.33 kB / 414.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009889/0.6218, allocations: 2.261 MB / 416.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.039e-06/0.6218, allocations: 0 / 416.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.6219, allocations: 7.938 kB / 416.5 MB, free: 12.8 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.0006666/0.6225, allocations: 408.9 kB / 416.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.6226, allocations: 8.031 kB / 416.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.423e-05/0.6227, allocations: 15.81 kB / 416.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.623, allocations: 214.2 kB / 417.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.623, allocations: 10.77 kB / 417.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.623, allocations: 11.38 kB / 417.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.6235, allocations: 191.8 kB / 417.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.6235, allocations: 4 kB / 417.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.6236, allocations: 0 / 417.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.6236, allocations: 4 kB / 417.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.6238, allocations: 69.09 kB / 417.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006327/0.6244, allocations: 344.4 kB / 417.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.6247, allocations: 125.5 kB / 417.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.6249, allocations: 68.19 kB / 417.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.6249, allocations: 4.141 kB / 417.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.6251, allocations: 87.06 kB / 418 MB, free: 11.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.862e-06/0.6251, allocations: 0 / 418 MB, free: 11.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004447/0.6256, allocations: 172.9 kB / 418.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.6257, allocations: 96.05 kB / 418.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.6258, allocations: 138.2 kB / 418.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.6259, allocations: 25.7 kB / 418.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.606e-05/0.626, allocations: 102.3 kB / 418.6 MB, free: 10.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.626, allocations: 26.83 kB / 418.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-06/0.626, allocations: 3.25 kB / 418.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6262, allocations: 330 kB / 418.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.726e-05/0.6263, allocations: 26.98 kB / 418.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.6265, allocations: 98.75 kB / 419 MB, free: 10.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.6266, allocations: 46.17 kB / 419.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-06/0.6266, allocations: 0 / 419.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000344/0.627, allocations: 161.8 kB / 419.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.627, allocations: 10.5 kB / 419.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.286e-06/0.627, allocations: 4 kB / 419.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.627, allocations: 4 kB / 419.3 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.6272, allocations: 23.92 kB / 419.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.6272, allocations: 4 kB / 419.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.6273, allocations: 11.84 kB / 419.3 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.6274, allocations: 8 kB / 419.3 MB, free: 10 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.0001767/0.6276, allocations: 143.5 kB / 419.4 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.6277, allocations: 71.83 kB / 419.5 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.6278, allocations: 15.94 kB / 419.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.711e-06/0.6278, allocations: 112 / 419.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.258e-06/0.6278, allocations: 8.031 kB / 419.5 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-06/0.6279, allocations: 3.938 kB / 419.5 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006986/0.6286, allocations: 442.2 kB / 420 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-06/0.6286, allocations: 0 / 420 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.6287, allocations: 15.98 kB / 420 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.036e-06/0.6287, allocations: 3.938 kB / 420 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.6288, allocations: 7.062 kB / 420 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.213e-06/0.6288, allocations: 0 / 420 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.998e-06/0.6288, allocations: 0 / 420 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.6293, allocations: 290.1 kB / 420.3 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.87e-05/0.6293, allocations: 88.92 kB / 420.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.6294, allocations: 11.61 kB / 420.4 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.6296, allocations: 11.98 kB / 420.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.6296, allocations: 11.64 kB / 420.4 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.6297, allocations: 11.98 kB / 420.4 MB, free: 8.883 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.6298, allocations: 121.8 kB / 420.5 MB, free: 8.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.77e-07/0.6298, allocations: 4 kB / 420.5 MB, free: 8.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003794/0.6302, allocations: 23.62 kB / 420.6 MB, free: 8.75 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.0001528/0.6304, allocations: 106.9 kB / 420.7 MB, free: 8.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.6307, allocations: 105.7 kB / 420.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.411e-06/0.6307, allocations: 0 / 420.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.6308, allocations: 35.17 kB / 420.8 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.6312, allocations: 43.94 kB / 420.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005471/0.6317, allocations: 190.6 kB / 421 MB, free: 8.309 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.6322, allocations: 0.7269 MB / 421.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.69e-05/0.6322, allocations: 13.02 kB / 421.8 MB, free: 7.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.6323, allocations: 19.44 kB / 421.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of SimCode: time 1.412e-06/0.6323, allocations: 0 / 421.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of Templates: time 0.004567/0.6369, allocations: 1.019 MB / 422.8 MB, free: 6.516 MB / 346.7 MB