Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.084e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3755, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1886/0.5641, allocations: 74.07 MB / 368.3 MB, free: 7.914 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5645, allocations: 67.97 kB / 368.3 MB, free: 7.848 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03483/0.5993, allocations: 6.897 MB / 375.2 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5994, allocations: 0 / 375.2 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.195e-05/0.5994, allocations: 8 kB / 375.2 MB, free: 0.9062 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001616/0.6011, allocations: 0.7219 MB / 376 MB, free: 132 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6011, allocations: 12.03 kB / 376 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.6013, allocations: 51.44 kB / 376 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000586/0.6019, allocations: 330 kB / 376.3 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.6019, allocations: 12 kB / 376.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.623e-05/0.602, allocations: 24.22 kB / 376.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007834/0.6028, allocations: 257.5 kB / 376.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008472/0.6037, allocations: 351.9 kB / 377 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.6037, allocations: 0 / 377 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/0.6038, allocations: 4 kB / 377 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.6038, allocations: 12 kB / 377 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003374/0.6072, allocations: 1.554 MB / 378.5 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007444/0.608, allocations: 306.7 kB / 378.8 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003934/0.6084, allocations: 173.1 kB / 379 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.6084, allocations: 4.234 kB / 379 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005292/0.609, allocations: 253.9 kB / 379.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 2.816e-06/0.609, allocations: 0 / 379.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.001342/0.6104, allocations: 428 kB / 379.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.6105, allocations: 217.6 kB / 379.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003858/0.6109, allocations: 249.2 kB / 380.1 MB, free: 11.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.611, allocations: 25.7 kB / 380.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/0.6112, allocations: 270.7 kB / 380.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.6113, allocations: 114.5 kB / 380.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.6114, allocations: 3.938 kB / 380.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.6115, allocations: 330.8 kB / 380.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.6118, allocations: 96.88 kB / 381 MB, free: 10.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003608/0.6122, allocations: 169.8 kB / 381.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.6125, allocations: 112.7 kB / 381.2 MB, free: 10.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6126, allocations: 0 / 381.2 MB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001069/0.6136, allocations: 402.5 kB / 381.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.351e-05/0.6137, allocations: 55.41 kB / 381.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.6137, allocations: 0 / 381.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007665/0.6145, allocations: 159.4 kB / 381.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.6149, allocations: 39.91 kB / 381.9 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/0.6211, allocations: 5.729 MB / 387.6 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006424/0.6218, allocations: 43.84 kB / 387.7 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.549e-05/0.6219, allocations: 16 kB / 387.7 MB, free: 3.598 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002348/0.6221, allocations: 156.1 kB / 387.8 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001274/0.6234, allocations: 439.9 kB / 388.3 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.6235, allocations: 35.62 kB / 388.3 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.6236, allocations: 36.3 kB / 388.3 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.6237, allocations: 4 kB / 388.3 MB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6237, allocations: 7.953 kB / 388.3 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.6237, allocations: 0 / 388.3 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.6243, allocations: 385.6 kB / 388.7 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.6244, allocations: 8 kB / 388.7 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.6246, allocations: 23.92 kB / 388.7 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006801/0.6253, allocations: 155.4 kB / 388.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.6253, allocations: 0 / 388.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005877/0.6312, allocations: 5.563 MB / 394.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.6313, allocations: 0 / 394.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.6327, allocations: 471.4 kB / 394.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.6329, allocations: 144.6 kB / 395.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.633, allocations: 4 kB / 395.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.6335, allocations: 35.97 kB / 395.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.6338, allocations: 55.84 kB / 395.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-05/0.6338, allocations: 8 kB / 395.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002893/0.6341, allocations: 200.6 kB / 395.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6341, allocations: 0 / 395.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001122/0.6353, allocations: 151.8 kB / 395.5 MB, free: 11.17 MB / 346.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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00179/0.6371, allocations: 1.033 MB / 396.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.6386, allocations: 0.8378 MB / 397.4 MB, free: 9.195 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6386, allocations: 0 / 397.4 MB, free: 9.195 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009456/0.6395, allocations: 0.6662 MB / 398 MB, free: 8.477 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/0.6401, allocations: 57.23 kB / 398.1 MB, free: 8.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.6426, allocations: 0.6422 MB / 398.7 MB, free: 7.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.6431, allocations: 0.8317 MB / 399.6 MB, free: 6.871 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.6434, allocations: 119.4 kB / 399.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6434, allocations: 0 / 399.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.66, allocations: 12.45 MB / 412.1 MB, free: 10.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat