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.654/1.654, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.02e-05, allocations: 7.938 kB / 228.8 MB, free: 15.43 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2069, allocations: 38.76 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.5896, allocations: 103 MB / 370.6 MB, free: 39.99 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.5899, allocations: 87.3 kB / 370.7 MB, free: 39.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2079/0.7978, allocations: 56.37 MB / 427 MB, free: 11.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7978, allocations: 0 / 427 MB, free: 11.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002872/0.7981, allocations: 87.75 kB / 427.1 MB, free: 11.22 MB / 298.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.007664/0.8058, allocations: 2.834 MB / 430 MB, free: 8.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.8059, allocations: 8.031 kB / 430 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001874/0.8077, allocations: 399.6 kB / 430.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004865/0.8126, allocations: 1.919 MB / 432.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.8129, allocations: 209.7 kB / 432.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008747/0.8138, allocations: 283.9 kB / 432.8 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008901/0.8227, allocations: 3.602 MB / 436.4 MB, free: 2.289 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.8228, allocations: 4 kB / 436.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004163/0.8233, allocations: 124 kB / 436.5 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.8234, allocations: 133.5 kB / 436.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007861/0.8313, allocations: 2.868 MB / 439.5 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02937/0.8607, allocations: 11.5 MB / 451 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003799/0.8646, allocations: 1.921 MB / 452.9 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.8668, allocations: 0.9246 MB / 453.8 MB, free: 356 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000413/0.8672, allocations: 138 kB / 454 MB, free: 200 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/0.8673, allocations: 51.56 kB / 454 MB, free: 140 kB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 5.035e-06/0.8673, allocations: 0 / 454 MB, free: 140 kB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01891/0.8862, allocations: 6.317 MB / 460.3 MB, free: 9.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.8863, allocations: 64.72 kB / 460.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/0.8899, allocations: 1.541 MB / 461.9 MB, free: 8.094 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003116/0.8902, allocations: 53.7 kB / 462 MB, free: 8.035 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.8916, allocations: 1.306 MB / 463.3 MB, free: 6.715 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007924/0.8924, allocations: 0.5084 MB / 463.8 MB, free: 6.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.8926, allocations: 40 kB / 463.8 MB, free: 6.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.8928, allocations: 382.8 kB / 464.2 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.8948, allocations: 0.8551 MB / 465.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002569/0.8974, allocations: 1.381 MB / 466.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002492/0.9, allocations: 1.086 MB / 467.5 MB, free: 2.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.831e-05/0.9, allocations: 4 kB / 467.5 MB, free: 2.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.007146/0.9072, allocations: 2.841 MB / 470.4 MB, free: 15.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.9072, allocations: 17.05 kB / 470.4 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/0.9073, allocations: 23.98 kB / 470.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/0.9093, allocations: 0.5376 MB / 471 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002326/0.9116, allocations: 443.3 kB / 471.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.9224, allocations: 6.261 MB / 477.7 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.9245, allocations: 127.8 kB / 477.8 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003193/0.9249, allocations: 91.94 kB / 477.9 MB, free: 7.578 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 204 * 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: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000478/0.9254, allocations: 212.4 kB / 478.1 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/0.9259, allocations: 201.5 kB / 478.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006676/0.9326, allocations: 2.601 MB / 480.9 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/0.9326, allocations: 20 kB / 480.9 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.9327, allocations: 4 kB / 480.9 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.899e-05/0.9327, allocations: 3.984 kB / 480.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/0.9477, allocations: 5.617 MB / 486.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/0.9478, allocations: 0 / 486.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.9494, allocations: 252 kB / 486.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/0.9517, allocations: 0.5883 MB / 487.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002861/0.9521, allocations: 35.98 kB / 487.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/0.9651, allocations: 7.975 MB / 495.4 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.323e-06/0.9652, allocations: 4 kB / 495.4 MB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00893/0.9741, allocations: 3.988 MB / 499.4 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.9757, allocations: 470.3 kB / 499.8 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.9761, allocations: 35.94 kB / 499.9 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.9775, allocations: 95.88 kB / 499.9 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/0.9779, allocations: 105.2 kB / 0.4883 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.9781, allocations: 51.94 kB / 0.4884 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.2068/1.185, allocations: 1.17 MB / 0.4895 GB, free: 85.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.357e-06/1.185, allocations: 0.6875 kB / 0.4895 GB, free: 85.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003283/1.188, allocations: 0.598 MB / 0.4901 GB, free: 85.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008455/1.189, allocations: 394.8 kB / 0.4905 GB, free: 85.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005122/1.194, allocations: 2.562 MB / 0.493 GB, free: 84.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.531e-06/1.194, allocations: 0 / 0.493 GB, free: 84.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003093/1.197, allocations: 1.545 MB / 0.4945 GB, free: 84.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.201, allocations: 480.7 kB / 0.495 GB, free: 84.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.211, allocations: 4.522 MB / 0.4994 GB, free: 83.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002717/1.214, allocations: 2.226 MB / 0.5015 GB, free: 82.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008134/1.215, allocations: 142.1 kB / 0.5017 GB, free: 82.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.871e-06/1.215, allocations: 0 / 0.5017 GB, free: 82.73 MB / 362.7 MB Notification: Performance of Templates: time 0.09462/1.31, allocations: 72.91 MB / 0.5729 GB, free: 45.51 MB / 362.7 MB