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.001184/0.001184, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001169/0.001169, allocations: 195.8 kB / 16.14 MB, free: 6.707 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.406/1.406, allocations: 205.1 MB / 222 MB, free: 4.984 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.001165/0.001165, allocations: 47.94 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2362, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01941/0.2556, allocations: 15.62 MB / 340.3 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.2677, allocations: 5.332 MB / 345.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003823/0.2715, allocations: 91.56 kB / 345.7 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.2751, allocations: 0.9636 MB / 346.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005036/0.2802, allocations: 1.209 MB / 347.9 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002268/0.2825, allocations: 0.8889 MB / 348.8 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005279/0.2877, allocations: 4.08 MB / 352.9 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003664/0.2914, allocations: 2.993 MB / 355.9 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.2937, allocations: 1.584 MB / 357.5 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.296, allocations: 2.117 MB / 359.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005174/0.2966, allocations: 316 kB / 359.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.2978, allocations: 0.5349 MB / 360.4 MB, free: 276 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000998/0.2989, allocations: 1.067 MB / 361.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002157/0.301, allocations: 2.017 MB / 363.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006012/0.307, allocations: 6.648 MB / 370.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3071, allocations: 0 / 370.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3071, allocations: 3.938 kB / 370.1 MB, free: 6.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.3072, allocations: 0 / 370.1 MB, free: 6.5 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.0121/0.3194, allocations: 4.657 MB / 374.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.3194, allocations: 12.03 kB / 374.8 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003007/0.3224, allocations: 0.6714 MB / 375.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.3264, allocations: 2.334 MB / 377.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.3266, allocations: 275.5 kB / 378.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004882/0.3271, allocations: 343.8 kB / 378.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007312/0.3344, allocations: 4.464 MB / 382.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.868e-05/0.3345, allocations: 3.938 kB / 382.9 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002997/0.3348, allocations: 140 kB / 383 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.335, allocations: 162.8 kB / 383.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006018/0.341, allocations: 3.739 MB / 386.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02157/0.3626, allocations: 14.48 MB / 401.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005052/0.3677, allocations: 5.381 MB / 406.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.3696, allocations: 1.27 MB / 408.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006435/0.376, allocations: 3.815 MB / 411.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.3761, allocations: 43.88 kB / 411.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 3.266e-06/0.3761, allocations: 0 / 411.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.009769/0.3859, allocations: 5.471 MB / 417.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.386, allocations: 68.66 kB / 417.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003183/0.3892, allocations: 2.102 MB / 419.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.3893, allocations: 45.7 kB / 419.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.3905, allocations: 1.661 MB / 421.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004043/0.3909, allocations: 457.4 kB / 421.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004835/0.3914, allocations: 343.1 kB / 422.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.3915, allocations: 301.1 kB / 422.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.3927, allocations: 0.7106 MB / 423.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.3941, allocations: 1.357 MB / 424.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002753/0.3969, allocations: 2.219 MB / 426.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.3969, allocations: 11.94 kB / 426.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004164/0.4011, allocations: 2.517 MB / 429.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.4011, allocations: 12 kB / 429.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/0.4012, allocations: 20 kB / 429.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004081/0.4016, allocations: 142.9 kB / 429.3 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.4032, allocations: 467.3 kB / 429.8 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.4059, allocations: 3.079 MB / 432.9 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.4079, allocations: 107.8 kB / 433 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.4081, allocations: 87.94 kB / 433.1 MB, free: 5 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.002221/0.4103, allocations: 1.059 MB / 434.1 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004772/0.4108, allocations: 213.3 kB / 434.3 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003563/0.4144, allocations: 2.169 MB / 436.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.4144, allocations: 16 kB / 436.5 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.4144, allocations: 8 kB / 436.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.4145, allocations: 7.969 kB / 436.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008481/0.423, allocations: 5.161 MB / 441.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.423, allocations: 4 kB / 441.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009995/0.424, allocations: 227.7 kB / 441.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007117/0.4247, allocations: 283 kB / 442.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.133e-05/0.4248, allocations: 28 kB / 442.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006378/0.4312, allocations: 7.112 MB / 449.3 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4313, allocations: 3.938 kB / 449.3 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004991/0.4362, allocations: 3.175 MB / 452.5 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000925/0.4372, allocations: 462.3 kB / 453 MB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/0.4375, allocations: 24 kB / 453 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009337/0.4384, allocations: 75.92 kB / 453.1 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.4386, allocations: 88.81 kB / 453.1 MB, free: 40 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.642e-05/0.4387, allocations: 39.98 kB / 453.2 MB, free: 0 / 382.1 MB Notification: Performance of sorting global known variables: time 0.1857/0.6244, allocations: 1.427 MB / 454.6 MB, free: 109.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.6244, allocations: 0 / 454.6 MB, free: 109.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002517/0.627, allocations: 0.5657 MB / 455.2 MB, free: 109.2 MB / 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.000346/0.6273, allocations: 160 kB / 455.3 MB, free: 109.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.6304, allocations: 2.088 MB / 457.4 MB, free: 108.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.6304, allocations: 2.688 kB / 457.4 MB, free: 108.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.6322, allocations: 1.376 MB / 458.8 MB, free: 107.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/0.6348, allocations: 0.517 MB / 459.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009705/0.6445, allocations: 7.615 MB / 466.9 MB, free: 103.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.6463, allocations: 2.414 MB / 469.3 MB, free: 102.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001682/0.648, allocations: 0.4885 MB / 469.8 MB, free: 102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.6484, allocations: 155.6 kB / 470 MB, free: 102 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6484, allocations: 0 / 470 MB, free: 102 MB / 382.1 MB Notification: Performance of Templates: time 0.04014/0.6885, allocations: 27.41 MB / 497.4 MB, free: 76.33 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)