Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008186/0.008186, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005135/0.0005135, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2713, allocations: 47.58 MB / 327 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01608/0.2874, allocations: 14.9 MB / 341.9 MB, free: 4.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.2998, allocations: 5.266 MB / 347.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004105/0.3039, allocations: 95.56 kB / 347.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003784/0.3077, allocations: 0.9597 MB / 348.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005658/0.3134, allocations: 1.205 MB / 349.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002997/0.3164, allocations: 0.8733 MB / 350.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007717/0.3242, allocations: 4.08 MB / 354.4 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004649/0.3289, allocations: 2.97 MB / 357.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002941/0.3318, allocations: 1.322 MB / 358.7 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004022/0.3359, allocations: 1.816 MB / 360.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008502/0.3368, allocations: 208 kB / 360.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.3385, allocations: 443.7 kB / 361.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009065/0.3394, allocations: 0.8951 MB / 362.1 MB, free: 168 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.342, allocations: 1.843 MB / 363.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008134/0.3501, allocations: 6.419 MB / 370.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3502, allocations: 4 kB / 370.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3502, allocations: 7.938 kB / 370.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002318/0.3504, allocations: 0 / 370.3 MB, free: 7.852 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01178/0.3622, allocations: 3.921 MB / 374.2 MB, free: 3.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.3623, allocations: 11.97 kB / 374.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003513/0.3658, allocations: 0.6676 MB / 374.9 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004127/0.3699, allocations: 2.338 MB / 377.3 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.3702, allocations: 271.5 kB / 377.5 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005245/0.3707, allocations: 347.8 kB / 377.9 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008091/0.3788, allocations: 4.46 MB / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.823e-05/0.3789, allocations: 7.891 kB / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.3792, allocations: 148 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.3794, allocations: 162.8 kB / 382.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006303/0.3857, allocations: 3.739 MB / 386.4 MB, free: 7.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02398/0.4097, allocations: 14.56 MB / 400.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005561/0.4153, allocations: 5.381 MB / 406.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.4174, allocations: 1.274 MB / 407.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007316/0.4248, allocations: 3.815 MB / 411.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.4248, allocations: 51.81 kB / 411.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 4.068e-06/0.4248, allocations: 3.938 kB / 411.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.01002/0.4349, allocations: 5.487 MB / 416.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.4349, allocations: 68.72 kB / 417 MB, free: 7.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.4381, allocations: 2.098 MB / 419.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.809e-05/0.4382, allocations: 49.7 kB / 419.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/0.4393, allocations: 1.653 MB / 420.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003835/0.4397, allocations: 469.3 kB / 421.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.4399, allocations: 149.6 kB / 421.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.977e-05/0.44, allocations: 301.1 kB / 421.7 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.4411, allocations: 0.7145 MB / 422.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.4427, allocations: 1.365 MB / 423.8 MB, free: 412 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/0.4455, allocations: 2.223 MB / 426 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.4456, allocations: 11.88 kB / 426 MB, free: 13.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004052/0.4496, allocations: 2.521 MB / 428.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.4497, allocations: 12 kB / 428.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/0.4497, allocations: 23.98 kB / 428.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004097/0.4501, allocations: 139 kB / 428.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.4517, allocations: 467.2 kB / 429.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002541/0.4543, allocations: 3.079 MB / 432.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.4559, allocations: 116 kB / 432.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4561, allocations: 84 kB / 432.4 MB, free: 7.137 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * 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: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001981/0.458, allocations: 1.048 MB / 433.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003766/0.4584, allocations: 217.3 kB / 433.7 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003606/0.462, allocations: 2.185 MB / 435.9 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.4621, allocations: 12 kB / 435.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4621, allocations: 4 kB / 435.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.4621, allocations: 3.984 kB / 435.9 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007757/0.4699, allocations: 5.177 MB / 441.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4699, allocations: 0 / 441.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009497/0.4708, allocations: 228 kB / 441.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006881/0.4715, allocations: 279 kB / 441.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.172e-05/0.4716, allocations: 31.98 kB / 441.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006513/0.4782, allocations: 7.119 MB / 448.7 MB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.768e-06/0.4782, allocations: 4 kB / 448.7 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004992/0.4832, allocations: 3.179 MB / 451.9 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.4845, allocations: 462.2 kB / 452.4 MB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005141/0.485, allocations: 35.98 kB / 452.4 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.4862, allocations: 72.17 kB / 452.5 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.4865, allocations: 92.81 kB / 452.6 MB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.43e-05/0.4866, allocations: 40.36 kB / 452.6 MB, free: 2.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.4895, allocations: 1.435 MB / 454 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4895, allocations: 4 kB / 454 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002473/0.492, allocations: 0.5547 MB / 454.6 MB, free: 100 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1875/0.6795, allocations: 157.4 kB / 454.8 MB, free: 111.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004725/0.6843, allocations: 2.094 MB / 456.8 MB, free: 111.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.6843, allocations: 0 / 456.8 MB, free: 111.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.6865, allocations: 1.384 MB / 458.2 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003788/0.6903, allocations: 0.5143 MB / 458.7 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.7019, allocations: 7.722 MB / 466.5 MB, free: 106 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/0.7041, allocations: 2.417 MB / 468.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001841/0.7059, allocations: 492.3 kB / 469.4 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.7064, allocations: 155.8 kB / 469.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.7064, allocations: 0 / 469.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of Templates: time 0.04657/0.753, allocations: 27.09 MB / 496.6 MB, free: 79.03 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)