Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 2.155/2.155, allocations: 194.9 MB / 211.2 MB, free: 8.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.474e-05/4.46e-05, allocations: 8 kB / 258.8 MB, free: 8.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004656/0.413, allocations: 2.848 MB / 306.1 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.4153, allocations: 0.8822 MB / 307 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002209/0.4156, allocations: 10.41 kB / 307 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.4157, allocations: 57.44 kB / 307.1 MB, free: 9.691 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005116/0.4163, allocations: 169.8 kB / 307.2 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006436/0.4169, allocations: 148.9 kB / 307.4 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005746/0.4175, allocations: 312.5 kB / 307.7 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.4178, allocations: 78.27 kB / 307.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.4181, allocations: 167.6 kB / 307.9 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.4184, allocations: 183.4 kB / 308.1 MB, free: 8.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.4187, allocations: 59.91 kB / 308.2 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.912e-05/0.4188, allocations: 27.94 kB / 308.2 MB, free: 8.746 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.4189, allocations: 75.73 kB / 308.3 MB, free: 8.672 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.4191, allocations: 51.94 kB / 308.3 MB, free: 8.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006337/0.4197, allocations: 404.7 kB / 308.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4197, allocations: 0 / 308.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4198, allocations: 4 kB / 308.7 MB, free: 8.223 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.4198, allocations: 0 / 308.7 MB, free: 8.223 MB / 250.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.001702/0.4215, allocations: 0.7316 MB / 309.5 MB, free: 7.43 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4216, allocations: 8.031 kB / 309.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.4217, allocations: 59.44 kB / 309.5 MB, free: 7.363 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005601/0.4223, allocations: 318.1 kB / 309.8 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.4224, allocations: 29 kB / 309.9 MB, free: 6.984 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-05/0.4225, allocations: 32 kB / 309.9 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.4236, allocations: 420.7 kB / 310.3 MB, free: 6.523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.4236, allocations: 0 / 310.3 MB, free: 6.523 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.4237, allocations: 20 kB / 310.3 MB, free: 6.504 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.4237, allocations: 8 kB / 310.3 MB, free: 6.496 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009566/0.4247, allocations: 307.8 kB / 310.6 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.4282, allocations: 1.633 MB / 312.3 MB, free: 4.461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009015/0.4291, allocations: 342.9 kB / 312.6 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.4292, allocations: 4.281 kB / 312.6 MB, free: 4.113 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006695/0.4299, allocations: 279.3 kB / 312.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of pre-optimization done (n=38): time 2.925e-06/0.4299, allocations: 0 / 312.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.003464/0.4334, allocations: 1.12 MB / 314 MB, free: 2.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.4335, allocations: 209.6 kB / 314.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.434, allocations: 292.9 kB / 314.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.4341, allocations: 33.7 kB / 314.5 MB, free: 1.984 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.4343, allocations: 262.9 kB / 314.8 MB, free: 1.727 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.4345, allocations: 122.3 kB / 314.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.4345, allocations: 8 kB / 314.9 MB, free: 1.598 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4346, allocations: 326.8 kB / 315.2 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.4351, allocations: 120.8 kB / 315.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/0.4355, allocations: 182.7 kB / 315.5 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004297/0.436, allocations: 180.1 kB / 315.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.436, allocations: 4 kB / 315.7 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001293/0.4373, allocations: 0.4903 MB / 316.2 MB, free: 244 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.4374, allocations: 63.34 kB / 316.3 MB, free: 168 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4374, allocations: 4 kB / 316.3 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008126/0.4382, allocations: 151.4 kB / 316.4 MB, free: 16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003234/0.4386, allocations: 35.91 kB / 316.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006894/0.4455, allocations: 5.998 MB / 322.4 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006363/0.4462, allocations: 55.75 kB / 322.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.385e-05/0.4462, allocations: 16 kB / 322.5 MB, free: 9.352 MB / 266.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,booleanPulse.y,$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.0003407/0.4466, allocations: 203.5 kB / 322.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4467, allocations: 39.53 kB / 322.7 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.4468, allocations: 44.06 kB / 322.8 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4468, allocations: 4 kB / 322.8 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4469, allocations: 0 / 322.8 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.4469, allocations: 3.984 kB / 322.8 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007164/0.4476, allocations: 449.1 kB / 323.2 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4476, allocations: 11.88 kB / 323.2 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.4479, allocations: 19.98 kB / 323.3 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007158/0.4486, allocations: 159.3 kB / 323.4 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.4487, allocations: 8.062 kB / 323.4 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006746/0.4554, allocations: 5.836 MB / 329.3 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.4555, allocations: 0 / 329.3 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.4571, allocations: 0.533 MB / 329.8 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.4573, allocations: 144.5 kB / 329.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.4574, allocations: 12 kB / 330 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.458, allocations: 35.92 kB / 330 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.4582, allocations: 67.84 kB / 330.1 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.4582, allocations: 8 kB / 330.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003575/0.4586, allocations: 227.2 kB / 330.3 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4586, allocations: 0 / 330.3 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001038/0.4597, allocations: 163.8 kB / 330.4 MB, free: 0.7539 MB / 266.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,booleanPulse.y,booleanPulse.pulsStart) * Number of discrete states: 6 (booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor1.off,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.0002997/0.46, allocations: 139.2 kB / 330.6 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4617, allocations: 0.9156 MB / 331.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4618, allocations: 0 / 331.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.4629, allocations: 0.7212 MB / 332.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.4636, allocations: 81.25 kB / 332.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.4662, allocations: 0.9661 MB / 333.3 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.4667, allocations: 0.8277 MB / 334.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.4668, allocations: 31.42 kB / 334.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of SimCode: time 1.133e-06/0.4668, allocations: 0 / 334.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of Templates: time 0.02077/0.4876, allocations: 11.01 MB / 345.1 MB, free: 1.863 MB / 282.7 MB