Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003645, allocations: 11.98 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0695/0.06989, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01512/0.08506, allocations: 9.506 MB / 281.4 MB, free: 2.645 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008419/0.09353, allocations: 3.665 MB / 285.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001977/0.09555, allocations: 59.69 kB / 285.2 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.09826, allocations: 0.7151 MB / 285.9 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003737/0.102, allocations: 0.8178 MB / 286.7 MB, free: 13.38 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.1036, allocations: 335.6 kB / 287 MB, free: 13.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004598/0.1082, allocations: 2.13 MB / 289.2 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00369/0.1119, allocations: 2.06 MB / 291.2 MB, free: 8.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002053/0.114, allocations: 1.066 MB / 292.3 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002236/0.1163, allocations: 1.319 MB / 293.6 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005301/0.1169, allocations: 168 kB / 293.8 MB, free: 6.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009203/0.1178, allocations: 239.9 kB / 294 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.1192, allocations: 0.8724 MB / 294.9 MB, free: 5.152 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.1203, allocations: 0.6211 MB / 295.5 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006165/0.1265, allocations: 4.262 MB / 299.8 MB, free: 256 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.272e-06/0.1265, allocations: 4 kB / 299.8 MB, free: 252 kB / 250.7 MB Notification: Performance of FrontEnd: time 3.302e-06/0.1266, allocations: 0 / 299.8 MB, free: 252 kB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001048/0.1267, allocations: 0 / 299.8 MB, free: 252 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.1837/0.3103, allocations: 3.114 MB / 302.9 MB, free: 28.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3104, allocations: 10.09 kB / 302.9 MB, free: 28.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001429/0.3118, allocations: 389.6 kB / 303.3 MB, free: 27.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004498/0.3164, allocations: 1.736 MB / 305 MB, free: 27.07 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.3167, allocations: 210 kB / 305.2 MB, free: 26.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007705/0.3175, allocations: 283.1 kB / 305.5 MB, free: 26.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008958/0.3264, allocations: 3.669 MB / 309.2 MB, free: 25.4 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/0.3266, allocations: 13.89 kB / 309.2 MB, free: 25.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003234/0.3269, allocations: 113.8 kB / 309.3 MB, free: 25.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.3271, allocations: 144.2 kB / 309.4 MB, free: 25.29 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007514/0.3346, allocations: 3.069 MB / 312.5 MB, free: 23.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/0.3568, allocations: 11.49 MB / 324 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/0.3595, allocations: 1.861 MB / 325.8 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000265/0.3597, allocations: 131.6 kB / 326 MB, free: 12.35 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.3598, allocations: 47.55 kB / 326 MB, free: 12.3 MB / 250.7 MB Notification: Performance of pre-optimization done (n=123): time 4.569e-06/0.3598, allocations: 0 / 326 MB, free: 12.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=138): time 0.01406/0.3739, allocations: 6.443 MB / 332.5 MB, free: 5.727 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.374, allocations: 64.72 kB / 332.5 MB, free: 5.652 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.3769, allocations: 1.753 MB / 334.3 MB, free: 3.855 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/0.3771, allocations: 49.7 kB / 334.3 MB, free: 3.801 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007383/0.3779, allocations: 1.317 MB / 335.6 MB, free: 2.477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.3783, allocations: 489.1 kB / 336.1 MB, free: 2.004 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.3784, allocations: 32 kB / 336.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3785, allocations: 382.8 kB / 336.5 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.3801, allocations: 0.812 MB / 337.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002031/0.3822, allocations: 1.356 MB / 338.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002239/0.3844, allocations: 1.037 MB / 339.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/0.3845, allocations: 8 kB / 339.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006047/0.3905, allocations: 2.674 MB / 342.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.3906, allocations: 16.03 kB / 342.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.543e-05/0.3906, allocations: 20 kB / 342.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.3918, allocations: 359.2 kB / 342.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002119/0.3939, allocations: 443.3 kB / 343.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008365/0.4023, allocations: 6.043 MB / 349.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.4042, allocations: 123.8 kB / 349.4 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.4044, allocations: 87.94 kB / 349.5 MB, free: 3.945 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0021/0.4065, allocations: 0.8876 MB / 350.4 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/0.407, allocations: 205.8 kB / 350.6 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00548/0.4125, allocations: 2.379 MB / 352.9 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.4126, allocations: 12 kB / 352.9 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.4126, allocations: 8 kB / 353 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.612e-05/0.4127, allocations: 15.86 kB / 353 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.4255, allocations: 5.347 MB / 358.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.4256, allocations: 4 kB / 358.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.4271, allocations: 255.6 kB / 358.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001358/0.4285, allocations: 383.9 kB / 358.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001658/0.4287, allocations: 35.98 kB / 359 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/0.4387, allocations: 7.528 MB / 366.5 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.219e-05/0.4388, allocations: 7.938 kB / 366.5 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0076/0.4464, allocations: 3.558 MB / 370.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/0.4477, allocations: 442.5 kB / 370.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003696/0.4481, allocations: 35.98 kB / 370.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.4493, allocations: 87.89 kB / 370.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.4496, allocations: 101.1 kB / 370.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.4497, allocations: 43.98 kB / 370.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002464/0.4522, allocations: 1.18 MB / 372 MB, free: 12.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.7e-07/0.4522, allocations: 0 / 372 MB, free: 12.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002616/0.4549, allocations: 0.5195 MB / 372.5 MB, free: 12.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004218/0.4553, allocations: 160.4 kB / 372.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005112/0.4604, allocations: 2.451 MB / 375.1 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.319e-06/0.4605, allocations: 0 / 375.1 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002905/0.4634, allocations: 1.47 MB / 376.5 MB, free: 7.895 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/0.4662, allocations: 482.3 kB / 377 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.4796, allocations: 6.641 MB / 383.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002996/0.4826, allocations: 2.207 MB / 385.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007873/0.4834, allocations: 143.4 kB / 386 MB, free: 14.33 MB / 314.7 MB Notification: Performance of SimCode: time 2.052e-06/0.4835, allocations: 4 kB / 386 MB, free: 14.32 MB / 314.7 MB Notification: Performance of Templates: time 0.2954/0.7789, allocations: 83.68 MB / 469.7 MB, free: 88.17 MB / 346.7 MB