Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.386/2.386, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.522e-05, allocations: 4.125 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5045/0.6048, allocations: 72.39 MB / 366.7 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.6052, allocations: 64.52 kB / 366.7 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04062/0.6458, allocations: 6.11 MB / 372.9 MB, free: 22.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.6459, allocations: 0 / 372.9 MB, free: 22.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.949e-05/0.646, allocations: 7.938 kB / 372.9 MB, free: 22.17 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002085/0.6481, allocations: 0.6159 MB / 373.5 MB, free: 21.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.948e-05/0.6482, allocations: 15.62 kB / 373.5 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.6484, allocations: 54.39 kB / 373.5 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000837/0.6493, allocations: 296.2 kB / 373.8 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.6494, allocations: 11.59 kB / 373.8 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.6495, allocations: 15.44 kB / 373.9 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001144/0.6507, allocations: 212.5 kB / 374.1 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007793/0.6515, allocations: 287 kB / 374.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.6516, allocations: 0 / 374.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.346e-05/0.6516, allocations: 4 kB / 374.4 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.6517, allocations: 7.75 kB / 374.4 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.6551, allocations: 1.364 MB / 375.7 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.6557, allocations: 199.3 kB / 375.9 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.656, allocations: 88.41 kB / 376 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.6561, allocations: 11.88 kB / 376 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.6561, allocations: 39.91 kB / 376.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.168e-06/0.6561, allocations: 3.609 kB / 376.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008322/0.657, allocations: 235.6 kB / 376.3 MB, free: 20.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.6571, allocations: 55.41 kB / 376.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.6575, allocations: 246.9 kB / 376.6 MB, free: 20.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.6575, allocations: 25.7 kB / 376.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.6577, allocations: 216.9 kB / 376.8 MB, free: 20.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.56e-05/0.6578, allocations: 70.02 kB / 376.9 MB, free: 20.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.6579, allocations: 0 / 376.9 MB, free: 20.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.658, allocations: 336.9 kB / 377.2 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.6583, allocations: 61.64 kB / 377.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.6585, allocations: 107.3 kB / 377.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.6588, allocations: 57.34 kB / 377.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6588, allocations: 0 / 377.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001098/0.6599, allocations: 309.9 kB / 377.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.66, allocations: 7.812 kB / 377.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.66, allocations: 0 / 377.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006873/0.6607, allocations: 111.1 kB / 377.9 MB, free: 19.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.6611, allocations: 35.31 kB / 377.9 MB, free: 19.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005598/0.6667, allocations: 4.278 MB / 382.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/0.6673, allocations: 21.89 kB / 382.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.6673, allocations: 3.875 kB / 382.2 MB, free: 15.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.6675, allocations: 116.6 kB / 382.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006906/0.6682, allocations: 248.3 kB / 382.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.6683, allocations: 29.83 kB / 382.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.6685, allocations: 27.91 kB / 382.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.6685, allocations: 3.906 kB / 382.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.6685, allocations: 0 / 382.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.6685, allocations: 6.484 kB / 382.6 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006162/0.6691, allocations: 321.6 kB / 382.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.6692, allocations: 0 / 382.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.6695, allocations: 29.17 kB / 383 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005908/0.6701, allocations: 99.5 kB / 383.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.6701, allocations: 7.016 kB / 383.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005309/0.6754, allocations: 4.277 MB / 387.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.6755, allocations: 0 / 387.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000767/0.6763, allocations: 359 kB / 387.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.6765, allocations: 126.8 kB / 387.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.6766, allocations: 0 / 387.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.6771, allocations: 21.73 kB / 387.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.6773, allocations: 24.84 kB / 387.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.6773, allocations: 8.25 kB / 387.9 MB, free: 11.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002878/0.6776, allocations: 190.3 kB / 388.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.6776, allocations: 0 / 388.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001132/0.6788, allocations: 109.2 kB / 388.2 MB, free: 11 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/0.6798, allocations: 0.8956 MB / 389.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.6809, allocations: 0.4915 MB / 389.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6809, allocations: 0 / 389.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006679/0.6816, allocations: 444.2 kB / 390 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.6822, allocations: 33.16 kB / 390 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.6838, allocations: 454.1 kB / 390.5 MB, free: 9.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.6843, allocations: 0.8065 MB / 391.3 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.6846, allocations: 21.33 kB / 391.3 MB, free: 8.715 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.6848, allocations: 104.8 kB / 391.4 MB, free: 8.707 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6848, allocations: 3.938 kB / 391.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05451/0.7393, allocations: 6.509 MB / 397.9 MB, free: 5.602 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0005484/0.74, allocations: 164.5 kB / 398.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.474/4.214, allocations: 0 / 398.1 MB, free: 5.406 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat