Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001588, allocations: 114.2 kB / 17.75 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 181.4 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009519/0.0009519, allocations: 39.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2179, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01297/0.2309, allocations: 11.89 MB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.238, allocations: 3.995 MB / 417.3 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.2396, allocations: 79.62 kB / 417.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.2417, allocations: 0.9314 MB / 418.3 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002744/0.2445, allocations: 1.01 MB / 419.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.2457, allocations: 0.55 MB / 419.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003544/0.2493, allocations: 3.411 MB / 423.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.2529, allocations: 3.096 MB / 426.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.2549, allocations: 1.589 MB / 428 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002847/0.2577, allocations: 2.036 MB / 430 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00068/0.2584, allocations: 436 kB / 430.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.2595, allocations: 0.5428 MB / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.2606, allocations: 1.258 MB / 432.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.2625, allocations: 1.932 MB / 434.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005075/0.2676, allocations: 5.685 MB / 439.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2676, allocations: 0 / 439.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2676, allocations: 0 / 439.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.318e-05/0.2677, allocations: 0 / 439.9 MB, free: 2.258 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007193/0.2749, allocations: 3.939 MB / 443.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2749, allocations: 12.03 kB / 443.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009238/0.2759, allocations: 404.4 kB / 444.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.2795, allocations: 2.13 MB / 446.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.2797, allocations: 218.2 kB / 446.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004111/0.2801, allocations: 307.8 kB / 446.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005999/0.2861, allocations: 3.851 MB / 450.7 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.659e-05/0.2862, allocations: 11.91 kB / 450.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.2865, allocations: 116 kB / 450.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.2866, allocations: 153.7 kB / 451 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005134/0.2918, allocations: 3.255 MB / 454.2 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/0.3101, allocations: 12.02 MB / 466.2 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002411/0.3125, allocations: 1.933 MB / 468.2 MB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/0.3144, allocations: 1.153 MB / 469.3 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002766/0.3147, allocations: 211.5 kB / 469.5 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.3147, allocations: 43.88 kB / 469.6 MB, free: 3.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.417e-06/0.3148, allocations: 0 / 469.6 MB, free: 3.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01307/0.3278, allocations: 7.011 MB / 476.6 MB, free: 12.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.3279, allocations: 76.66 kB / 476.7 MB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003068/0.331, allocations: 2.028 MB / 478.7 MB, free: 10.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.3311, allocations: 53.7 kB / 478.7 MB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009762/0.3321, allocations: 1.46 MB / 480.2 MB, free: 8.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004087/0.3325, allocations: 0.5314 MB / 480.7 MB, free: 8.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000538/0.333, allocations: 347.3 kB / 481.1 MB, free: 8.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.587e-05/0.3331, allocations: 305.1 kB / 481.4 MB, free: 7.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.3345, allocations: 0.8823 MB / 482.3 MB, free: 6.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/0.3362, allocations: 1.446 MB / 483.7 MB, free: 5.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003226/0.3394, allocations: 2.514 MB / 486.2 MB, free: 2.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.3395, allocations: 4 kB / 486.2 MB, free: 2.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004758/0.3442, allocations: 3.01 MB / 489.2 MB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.3443, allocations: 12 kB / 489.2 MB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.3443, allocations: 16 kB / 489.3 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008997/0.3452, allocations: 399.5 kB / 489.6 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.3469, allocations: 475.2 kB / 490.1 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005891/0.3528, allocations: 6.693 MB / 496.8 MB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.3545, allocations: 139.8 kB / 496.9 MB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.3547, allocations: 83.98 kB / 497 MB, free: 7.145 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001535/0.3562, allocations: 0.9343 MB / 498 MB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/0.3567, allocations: 225.2 kB / 498.2 MB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004406/0.3611, allocations: 2.582 MB / 0.489 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.3612, allocations: 11.91 kB / 0.489 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3612, allocations: 0 / 0.489 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.3622, allocations: 490.3 kB / 0.4895 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003943/0.3626, allocations: 28.11 kB / 0.4895 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.3638, allocations: 111.8 kB / 0.4896 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.364, allocations: 105.1 kB / 0.4897 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004801/0.3688, allocations: 2.53 MB / 0.4922 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004579/0.3734, allocations: 3.37 MB / 0.4955 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001226/0.3746, allocations: 0.9393 MB / 0.4964 GB, free: 11.72 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002194/0.3768, allocations: 1.382 MB / 0.4978 GB, free: 10.32 MB / 430.1 MB Notification: Performance of Backend: time 3.51e-07/0.3768, allocations: 0 / 0.4978 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003801/0.3807, allocations: 2.021 MB / 0.4997 GB, free: 8.23 MB / 430.1 MB Notification: Performance of SimCode: time 0.009855/0.3905, allocations: 6.037 MB / 0.5056 GB, free: 2.148 MB / 430.1 MB Notification: Performance of Templates: time 0.05473/0.4453, allocations: 34.01 MB / 0.5388 GB, free: 436 kB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1)