Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadModel(ModelicaTest): time 2.388/2.388, allocations: 269 MB / 284.1 MB, free: 3.551 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.233e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1437, allocations: 61.9 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.007831/0.1516, allocations: 3.321 MB / 414.2 MB, free: 9.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003808/0.1555, allocations: 1.036 MB / 415.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007091/0.1563, allocations: 35.88 kB / 415.3 MB, free: 8.426 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002005/0.1565, allocations: 59.36 kB / 415.4 MB, free: 8.367 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009296/0.1574, allocations: 159.4 kB / 415.5 MB, free: 8.211 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.1588, allocations: 287.4 kB / 415.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.1603, allocations: 0.5117 MB / 416.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.1608, allocations: 150.7 kB / 416.5 MB, free: 7.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006273/0.1615, allocations: 227.3 kB / 416.7 MB, free: 7.047 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005448/0.162, allocations: 223 kB / 416.9 MB, free: 6.828 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.1622, allocations: 24 kB / 416.9 MB, free: 6.805 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.1623, allocations: 20 kB / 417 MB, free: 6.785 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.1625, allocations: 95.48 kB / 417 MB, free: 6.691 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.1627, allocations: 44 kB / 417.1 MB, free: 6.648 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1637, allocations: 0.5496 MB / 417.6 MB, free: 6.098 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1638, allocations: 0 / 417.6 MB, free: 6.098 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1638, allocations: 0 / 417.6 MB, free: 6.098 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1638, allocations: 0 / 417.6 MB, free: 6.098 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002736/0.1665, allocations: 0.8501 MB / 418.5 MB, free: 5.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.1666, allocations: 15.97 kB / 418.5 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.1669, allocations: 90.95 kB / 418.6 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.1683, allocations: 482.5 kB / 419.1 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.413e-05/0.1684, allocations: 45.31 kB / 419.1 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/0.1686, allocations: 71.84 kB / 419.2 MB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.1708, allocations: 0.6037 MB / 419.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/0.1709, allocations: 8 kB / 419.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.171, allocations: 20 kB / 419.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.066e-05/0.171, allocations: 16 kB / 419.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1726, allocations: 401.9 kB / 420.2 MB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.1787, allocations: 3.044 MB / 423.3 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3228/0.5016, allocations: 460.5 kB / 423.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.854e-05/0.5017, allocations: 3.875 kB / 423.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.5018, allocations: 40.41 kB / 423.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.587e-06/0.5018, allocations: 3.906 kB / 423.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.002349/0.5041, allocations: 0.5686 MB / 424.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.5042, allocations: 108.7 kB / 424.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009505/0.5052, allocations: 476.5 kB / 424.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.204e-05/0.5053, allocations: 34.39 kB / 424.9 MB, free: 12.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003086/0.5056, allocations: 399 kB / 425.3 MB, free: 12.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.5058, allocations: 157.4 kB / 425.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.5058, allocations: 9.969 kB / 425.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.624e-05/0.5059, allocations: 342.7 kB / 425.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007273/0.5067, allocations: 181.2 kB / 426 MB, free: 12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008474/0.5075, allocations: 405.3 kB / 426.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008101/0.5084, allocations: 230.4 kB / 426.6 MB, free: 11.58 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-06/0.5084, allocations: 2.422 kB / 426.6 MB, free: 11.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001991/0.5104, allocations: 0.6253 MB / 427.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005316/0.511, allocations: 2.617 MB / 429.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.511, allocations: 9.391 kB / 429.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.501e-05/0.511, allocations: 11.59 kB / 429.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.5122, allocations: 148.1 kB / 430 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.718e-05/0.5122, allocations: 12.14 kB / 430 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007344/0.513, allocations: 79.81 kB / 430.1 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.5131, allocations: 30.28 kB / 430.1 MB, free: 8.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.5131, allocations: 3.531 kB / 430.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001685/0.5148, allocations: 0.5469 MB / 430.7 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.5148, allocations: 6.688 kB / 430.7 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.5149, allocations: 17.52 kB / 430.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000966/0.5158, allocations: 138.2 kB / 430.9 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.003e-05/0.5159, allocations: 10.89 kB / 430.9 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.5164, allocations: 61.17 kB / 430.9 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.5164, allocations: 33.12 kB / 431 MB, free: 8.188 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0004075/0.5168, allocations: 201.8 kB / 431.2 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.5171, allocations: 67.33 kB / 431.2 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001663/0.5172, allocations: 72 kB / 431.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.5172, allocations: 4.562 kB / 431.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.5173, allocations: 2.312 kB / 431.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.5173, allocations: 3.766 kB / 431.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.5184, allocations: 0.5725 MB / 431.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5184, allocations: 1.375 kB / 431.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/0.5194, allocations: 90.47 kB / 432 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.5195, allocations: 2.75 kB / 432 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.5195, allocations: 12.97 kB / 432 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.5195, allocations: 2.219 kB / 432 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5196, allocations: 2.734 kB / 432 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.5217, allocations: 0.8223 MB / 432.8 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.522, allocations: 172 kB / 433 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.5221, allocations: 12.41 kB / 433 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.5227, allocations: 33.19 kB / 433 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.5229, allocations: 25.55 kB / 433 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.5229, allocations: 12.53 kB / 433.1 MB, free: 6.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006183/0.5236, allocations: 368.4 kB / 433.4 MB, free: 6.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5236, allocations: 4 kB / 433.4 MB, free: 6.766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001258/0.5248, allocations: 241 kB / 433.7 MB, free: 6.703 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.000159/0.525, allocations: 109.9 kB / 433.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.5275, allocations: 0.7409 MB / 434.5 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.5276, allocations: 1.531 kB / 434.5 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006912/0.5283, allocations: 200.5 kB / 434.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.5297, allocations: 169.8 kB / 434.9 MB, free: 6.266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.533, allocations: 1.709 MB / 436.6 MB, free: 5.227 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.5335, allocations: 0.9265 MB / 437.5 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003152/0.5339, allocations: 49.77 kB / 437.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.5339, allocations: 0 / 437.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of Templates: time 0.02041/0.5543, allocations: 7.417 MB / 445 MB, free: 2.965 MB / 346.7 MB