Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.409/2.409, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.507e-05/3.524e-05, allocations: 4.641 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1532, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5109/0.6642, allocations: 75.03 MB / 369.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.6645, allocations: 69.91 kB / 369.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07578/0.7403, allocations: 15.37 MB / 384.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7404, allocations: 4 kB / 384.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.998e-05/0.7405, allocations: 23.03 kB / 384.8 MB, free: 19.21 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.005526/0.746, allocations: 1.228 MB / 386 MB, free: 18.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.7461, allocations: 7.781 kB / 386 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003631/0.7465, allocations: 104.7 kB / 386.1 MB, free: 18.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.7476, allocations: 0.5188 MB / 386.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.943e-05/0.7476, allocations: 26.81 kB / 386.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002354/0.7479, allocations: 53.94 kB / 386.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00269/0.7506, allocations: 0.8414 MB / 387.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.753, allocations: 0.8387 MB / 388.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.7531, allocations: 0 / 388.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/0.7533, allocations: 7.859 kB / 388.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.7533, allocations: 22.55 kB / 388.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01165/0.765, allocations: 3.351 MB / 391.8 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.7672, allocations: 0.7737 MB / 392.5 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.7683, allocations: 436.6 kB / 393 MB, free: 16.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.7684, allocations: 22.81 kB / 393 MB, free: 16.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.7685, allocations: 38.19 kB / 393 MB, free: 16.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 4.82e-06/0.7685, allocations: 3.875 kB / 393 MB, free: 16.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.006955/0.7754, allocations: 1.993 MB / 395 MB, free: 15.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.7755, allocations: 63.62 kB / 395.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007574/0.7763, allocations: 405.9 kB / 395.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.7765, allocations: 25.7 kB / 395.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/0.7769, allocations: 417.7 kB / 395.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.7773, allocations: 245.9 kB / 396.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.7774, allocations: 0 / 396.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.7777, allocations: 373.1 kB / 396.5 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.7787, allocations: 348.7 kB / 396.9 MB, free: 14.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.7799, allocations: 475.2 kB / 397.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/0.7812, allocations: 386.6 kB / 397.7 MB, free: 14.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.7812, allocations: 3.906 kB / 397.7 MB, free: 14.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003743/0.785, allocations: 1.074 MB / 398.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.785, allocations: 3.969 kB / 398.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.7851, allocations: 3.906 kB / 398.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.7861, allocations: 167.7 kB / 399 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/0.7891, allocations: 290.9 kB / 399.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00597/0.7951, allocations: 2.539 MB / 401.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0024/0.7975, allocations: 113.5 kB / 401.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.7978, allocations: 37.64 kB / 401.9 MB, free: 12.37 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003953/0.7982, allocations: 112.6 kB / 402 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003307/0.8015, allocations: 0.9145 MB / 403 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.8018, allocations: 74.14 kB / 403 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003785/0.8022, allocations: 78.44 kB / 403.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.8022, allocations: 7.75 kB / 403.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.8023, allocations: 3.875 kB / 403.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.8023, allocations: 11.94 kB / 403.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.8043, allocations: 0.8872 MB / 404 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.8044, allocations: 3.938 kB / 404 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002717/0.8071, allocations: 238.5 kB / 404.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009763/0.8081, allocations: 174.3 kB / 404.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.8083, allocations: 19.59 kB / 404.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005958/0.8143, allocations: 2.518 MB / 407 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.8143, allocations: 0 / 407 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00523/0.8196, allocations: 1.542 MB / 408.5 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.8199, allocations: 135.8 kB / 408.6 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.8202, allocations: 4.25 kB / 408.6 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002247/0.8225, allocations: 140 kB / 408.8 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.8228, allocations: 47.98 kB / 408.8 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.8229, allocations: 27.41 kB / 408.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006245/0.8235, allocations: 311 kB / 409.1 MB, free: 8.996 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8236, allocations: 4 kB / 409.2 MB, free: 8.992 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001441/0.825, allocations: 209.8 kB / 409.4 MB, free: 8.988 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005533/0.8306, allocations: 2.098 MB / 411.5 MB, free: 7.559 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004111/0.8347, allocations: 1.06 MB / 412.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.8348, allocations: 0 / 412.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.8373, allocations: 0.6606 MB / 413.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.8384, allocations: 70.06 kB / 413.2 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006309/0.8448, allocations: 1.777 MB / 415 MB, free: 4.004 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008484/0.8457, allocations: 0.9813 MB / 416 MB, free: 2.996 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001109/0.8468, allocations: 72.95 kB / 416.1 MB, free: 2.926 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.8478, allocations: 295.3 kB / 416.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.8478, allocations: 0 / 416.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08532/0.9332, allocations: 15.04 MB / 431.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004064/0.9336, allocations: 160.8 kB / 431.6 MB, free: 3.438 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.743/4.677, allocations: 0 / 431.6 MB, free: 3.438 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat does not exist to compare? outputFormat=mat