Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 111.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 55.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2336, allocations: 50.55 MB / 410 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0138/0.2475, allocations: 11.93 MB / 421.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008062/0.2556, allocations: 4.035 MB / 425.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002548/0.2581, allocations: 75.69 kB / 426 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002593/0.2608, allocations: 0.8963 MB / 426.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.2643, allocations: 0.9707 MB / 427.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.2659, allocations: 0.5578 MB / 428.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004392/0.2703, allocations: 3.406 MB / 431.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004347/0.2747, allocations: 3.085 MB / 434.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002495/0.2772, allocations: 1.596 MB / 436.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.2804, allocations: 2.036 MB / 438.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001152/0.2816, allocations: 443.9 kB / 439 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.2833, allocations: 0.5389 MB / 439.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.2849, allocations: 1.262 MB / 440.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00221/0.2871, allocations: 1.94 MB / 442.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.2928, allocations: 5.698 MB / 448.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2928, allocations: 0 / 448.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2928, allocations: 0 / 448.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.475e-05/0.2929, allocations: 0 / 448.4 MB, free: 10.95 MB / 366.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.007575/0.3005, allocations: 3.943 MB / 452.4 MB, free: 6.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3006, allocations: 8.031 kB / 452.4 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/0.3017, allocations: 416.4 kB / 452.8 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003909/0.3056, allocations: 2.13 MB / 454.9 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/0.3057, allocations: 234.2 kB / 455.1 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004061/0.3062, allocations: 295.8 kB / 455.4 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/0.312, allocations: 3.847 MB / 459.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.406e-05/0.3121, allocations: 11.89 kB / 459.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002675/0.3124, allocations: 120 kB / 459.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/0.3125, allocations: 145.7 kB / 459.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005221/0.3177, allocations: 3.259 MB / 462.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01772/0.3355, allocations: 12.02 MB / 474.8 MB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.3379, allocations: 1.941 MB / 476.8 MB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.3398, allocations: 1.149 MB / 477.9 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002904/0.3401, allocations: 219.4 kB / 478.1 MB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3401, allocations: 47.88 kB / 478.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.276e-06/0.3401, allocations: 0 / 478.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01345/0.3536, allocations: 7.013 MB / 485.2 MB, free: 5.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.3536, allocations: 64.72 kB / 485.2 MB, free: 5.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00292/0.3566, allocations: 2.036 MB / 487.3 MB, free: 3.156 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.3567, allocations: 53.7 kB / 487.3 MB, free: 3.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.3577, allocations: 1.463 MB / 488.8 MB, free: 1.617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004446/0.3582, allocations: 0.5314 MB / 489.3 MB, free: 1.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005185/0.3587, allocations: 343.3 kB / 489.7 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.3588, allocations: 313.1 kB / 490 MB, free: 436 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.3602, allocations: 0.8707 MB / 490.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.3619, allocations: 1.458 MB / 492.3 MB, free: 13.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003202/0.3651, allocations: 2.498 MB / 494.8 MB, free: 11.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.457e-06/0.3651, allocations: 12 kB / 494.8 MB, free: 11.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00482/0.3699, allocations: 3.018 MB / 497.8 MB, free: 8.023 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.37, allocations: 14.81 kB / 497.8 MB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-05/0.37, allocations: 20 kB / 497.9 MB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008598/0.3709, allocations: 387.6 kB / 498.2 MB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/0.3726, allocations: 475.2 kB / 498.7 MB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/0.3787, allocations: 6.689 MB / 0.4935 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.3804, allocations: 135.9 kB / 0.4937 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.3805, allocations: 83.92 kB / 0.4938 GB, free: 15.82 MB / 430.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.001458/0.382, allocations: 0.9382 MB / 0.4947 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/0.3824, allocations: 221.2 kB / 0.4949 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004155/0.3865, allocations: 2.598 MB / 0.4974 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.3866, allocations: 11.91 kB / 0.4974 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3866, allocations: 0 / 0.4974 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009148/0.3875, allocations: 490.3 kB / 0.4979 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002628/0.3878, allocations: 28 kB / 0.4979 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.3888, allocations: 103.9 kB / 0.498 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.389, allocations: 105.1 kB / 0.4981 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004755/0.3938, allocations: 2.534 MB / 0.5006 GB, free: 8.715 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004753/0.3985, allocations: 3.366 MB / 0.5039 GB, free: 5.336 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001291/0.3999, allocations: 0.9432 MB / 0.5048 GB, free: 4.391 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.402, allocations: 1.386 MB / 0.5062 GB, free: 2.984 MB / 430.1 MB Notification: Performance of Backend: time 5.41e-07/0.402, allocations: 0 / 0.5062 GB, free: 2.984 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.4059, allocations: 2.029 MB / 0.5081 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of SimCode: time 0.009632/0.4156, allocations: 6.028 MB / 0.514 GB, free: 10.82 MB / 446.1 MB Notification: Performance of Templates: time 0.2452/0.6608, allocations: 34.12 MB / 0.5473 GB, free: 126 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1)