Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadModel(Modelica_Synchronous): time 2.257/2.257, allocations: 218.4 MB / 234.2 MB, free: 4.617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.464e-05/4.462e-05, allocations: 4 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3707, allocations: 50.37 MB / 338 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003763/0.3745, allocations: 1.516 MB / 339.5 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.3768, allocations: 0.6323 MB / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.377, allocations: 4 kB / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.215e-05/0.3771, allocations: 11.86 kB / 340.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.3774, allocations: 27.89 kB / 340.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008455/0.3782, allocations: 107.7 kB / 340.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.3785, allocations: 87.73 kB / 340.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.3787, allocations: 24.17 kB / 340.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.3789, allocations: 31.91 kB / 340.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3791, allocations: 43.77 kB / 340.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.3793, allocations: 39.97 kB / 340.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.834e-05/0.3793, allocations: 4 kB / 340.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-05/0.3794, allocations: 27.91 kB / 340.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.75e-05/0.3795, allocations: 4 kB / 340.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.3799, allocations: 139.7 kB / 340.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3801, allocations: 0 / 340.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3801, allocations: 0 / 340.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3801, allocations: 0 / 340.7 MB, free: 13.14 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001025/0.3811, allocations: 425 kB / 341.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.3812, allocations: 8.031 kB / 341.1 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.469e-05/0.3813, allocations: 27.75 kB / 341.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.3819, allocations: 234.8 kB / 341.3 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.3819, allocations: 8.172 kB / 341.4 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.382, allocations: 12 kB / 341.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3834, allocations: 342.8 kB / 341.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3835, allocations: 4 kB / 341.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.3835, allocations: 4 kB / 341.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3835, allocations: 4 kB / 341.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006004/0.3841, allocations: 99.83 kB / 341.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.3849, allocations: 341.6 kB / 342.1 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.386, allocations: 282.1 kB / 342.4 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001126/0.3871, allocations: 0.5818 MB / 343 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/0.3872, allocations: 42.84 kB / 343 MB, free: 10.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 5.059e-06/0.3872, allocations: 0 / 343 MB, free: 10.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.001453/0.3887, allocations: 336.1 kB / 343.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.3889, allocations: 118.8 kB / 343.5 MB, free: 9.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000365/0.3892, allocations: 177.3 kB / 343.7 MB, free: 9.746 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.3893, allocations: 29.7 kB / 343.7 MB, free: 9.711 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.3894, allocations: 163.1 kB / 343.8 MB, free: 9.551 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.427e-05/0.3895, allocations: 23.73 kB / 343.9 MB, free: 9.527 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.3895, allocations: 8 kB / 343.9 MB, free: 9.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3897, allocations: 322.9 kB / 344.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.3899, allocations: 40.34 kB / 344.2 MB, free: 9.156 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003444/0.3903, allocations: 161.9 kB / 344.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.3906, allocations: 67.94 kB / 344.5 MB, free: 8.871 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.3906, allocations: 8 kB / 344.5 MB, free: 8.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007847/0.3914, allocations: 205.6 kB / 344.7 MB, free: 8.656 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.3915, allocations: 8 kB / 344.7 MB, free: 8.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.3915, allocations: 7.953 kB / 344.7 MB, free: 8.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.3916, allocations: 4 kB / 344.7 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.3932, allocations: 43.92 kB / 344.7 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.788e-05/0.3933, allocations: 7.984 kB / 344.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.3937, allocations: 19.91 kB / 344.8 MB, free: 8.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.3937, allocations: 8 kB / 344.8 MB, free: 8.559 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0003011/0.394, allocations: 157.8 kB / 344.9 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007704/0.3948, allocations: 163.5 kB / 345.1 MB, free: 8.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008072/0.3956, allocations: 187.3 kB / 345.3 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.3957, allocations: 7.953 kB / 345.3 MB, free: 8.031 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3957, allocations: 4 kB / 345.3 MB, free: 8.027 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.3957, allocations: 0 / 345.3 MB, free: 8.027 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005343/0.3963, allocations: 237.3 kB / 345.5 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.3963, allocations: 4 kB / 345.5 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003724/0.3967, allocations: 31.92 kB / 345.5 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/0.3967, allocations: 8 kB / 345.5 MB, free: 7.703 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.3968, allocations: 3.984 kB / 345.5 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.3968, allocations: 0 / 345.5 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.3968, allocations: 3.953 kB / 345.6 MB, free: 7.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009652/0.3978, allocations: 307.9 kB / 345.9 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.398, allocations: 116.8 kB / 346 MB, free: 7.238 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.759e-05/0.3981, allocations: 4 kB / 346 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.3984, allocations: 15.98 kB / 346 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.3985, allocations: 7.938 kB / 346 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.3985, allocations: 4 kB / 346 MB, free: 7.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002552/0.3988, allocations: 144.4 kB / 346.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3988, allocations: 0 / 346.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000755/0.3996, allocations: 28 kB / 346.2 MB, free: 7.039 MB / 282.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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0003131/0.3999, allocations: 115.8 kB / 346.3 MB, free: 6.914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007599/0.4007, allocations: 151.7 kB / 346.4 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4007, allocations: 0 / 346.4 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.203e-05/0.4008, allocations: 13.17 kB / 346.4 MB, free: 6.754 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.402, allocations: 153.4 kB / 346.6 MB, free: 6.602 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.4034, allocations: 412.5 kB / 347 MB, free: 6.168 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.4039, allocations: 0.7324 MB / 347.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.404, allocations: 19.44 kB / 347.7 MB, free: 5.391 MB / 282.7 MB Notification: Performance of SimCode: time 1.252e-06/0.4041, allocations: 0 / 347.7 MB, free: 5.391 MB / 282.7 MB Notification: Performance of Templates: time 0.00827/0.4123, allocations: 2.168 MB / 349.9 MB, free: 3.223 MB / 282.7 MB