Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001092/0.001091, allocations: 112.2 kB / 16.62 MB, free: 6.812 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.00113/0.00113, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.359/1.359, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.001383/0.001383, allocations: 52.14 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.1005, allocations: 46.62 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01794/0.1184, allocations: 15.64 MB / 341.8 MB, free: 5.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.1304, allocations: 5.308 MB / 347.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00341/0.1339, allocations: 87.62 kB / 347.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003748/0.1377, allocations: 0.9715 MB / 348.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005181/0.1429, allocations: 1.201 MB / 349.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003017/0.1459, allocations: 0.8773 MB / 350.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006488/0.1524, allocations: 4.029 MB / 354.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006112/0.1586, allocations: 3.556 MB / 357.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.162, allocations: 1.826 MB / 359.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004176/0.1662, allocations: 2.269 MB / 361.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001852/0.168, allocations: 0.5117 MB / 362.4 MB, free: 324 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003093/0.1712, allocations: 0.7458 MB / 363.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00226/0.1734, allocations: 1.286 MB / 364.4 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003639/0.1771, allocations: 2.252 MB / 366.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00659/0.1837, allocations: 6.796 MB / 373.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1837, allocations: 0 / 373.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1837, allocations: 0 / 373.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001408/0.1839, allocations: 0 / 373.5 MB, free: 5.203 MB / 318.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.0112/0.1951, allocations: 4.657 MB / 378.1 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.1952, allocations: 11.89 kB / 378.2 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1714/0.3666, allocations: 0.6723 MB / 378.8 MB, free: 49.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00503/0.3716, allocations: 2.331 MB / 381.2 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.372, allocations: 266.9 kB / 381.4 MB, free: 49.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007397/0.3727, allocations: 348.9 kB / 381.8 MB, free: 48.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008263/0.381, allocations: 4.457 MB / 386.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.867e-05/0.3811, allocations: 14.86 kB / 386.2 MB, free: 47.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.3814, allocations: 141.9 kB / 386.4 MB, free: 47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/0.3816, allocations: 163.6 kB / 386.5 MB, free: 46.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006399/0.388, allocations: 3.734 MB / 390.3 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/0.4056, allocations: 14.49 MB / 404.8 MB, free: 35.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003798/0.4095, allocations: 5.369 MB / 410.1 MB, free: 29.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.411, allocations: 1.278 MB / 411.4 MB, free: 28.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005104/0.4161, allocations: 3.796 MB / 415.2 MB, free: 24.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.4162, allocations: 47.88 kB / 415.2 MB, free: 24.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 2.565e-06/0.4162, allocations: 0 / 415.2 MB, free: 24.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.007558/0.4237, allocations: 5.475 MB / 420.7 MB, free: 18.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.4238, allocations: 68.66 kB / 420.8 MB, free: 18.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002368/0.4262, allocations: 2.094 MB / 422.9 MB, free: 16.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.018e-05/0.4262, allocations: 49.7 kB / 422.9 MB, free: 16.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006952/0.4269, allocations: 1.664 MB / 424.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.4272, allocations: 457.2 kB / 425 MB, free: 14.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003899/0.4276, allocations: 335.2 kB / 425.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.832e-05/0.4276, allocations: 301.1 kB / 425.7 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/0.4285, allocations: 0.7145 MB / 426.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.4296, allocations: 1.353 MB / 427.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.4316, allocations: 2.225 MB / 430 MB, free: 8.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4317, allocations: 7.844 kB / 430 MB, free: 8.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003078/0.4347, allocations: 2.521 MB / 432.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.4348, allocations: 12 kB / 432.5 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.4348, allocations: 24 kB / 432.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003189/0.4351, allocations: 143 kB / 432.7 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.4366, allocations: 463.3 kB / 433.1 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.4386, allocations: 3.352 MB / 436.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.4406, allocations: 119.7 kB / 436.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.4408, allocations: 87.92 kB / 436.7 MB, free: 1.789 MB / 318.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.001641/0.4424, allocations: 1.048 MB / 437.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.4427, allocations: 213.4 kB / 437.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003369/0.4461, allocations: 2.181 MB / 440.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.4461, allocations: 12 kB / 440.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4461, allocations: 11.94 kB / 440.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.4461, allocations: 3.984 kB / 440.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008211/0.4544, allocations: 5.167 MB / 445.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.4544, allocations: 0 / 445.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009934/0.4554, allocations: 227.6 kB / 445.5 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006733/0.4561, allocations: 279.4 kB / 445.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.137e-05/0.4562, allocations: 31.98 kB / 445.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006726/0.4629, allocations: 7.796 MB / 453.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4629, allocations: 8.094 kB / 453.6 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004721/0.4677, allocations: 3.172 MB / 456.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009074/0.4686, allocations: 454.3 kB / 457.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.4689, allocations: 32 kB / 457.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009759/0.4698, allocations: 67.92 kB / 457.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.47, allocations: 96.75 kB / 457.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.896e-05/0.4701, allocations: 43.98 kB / 457.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002001/0.4721, allocations: 1.431 MB / 458.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4721, allocations: 0 / 458.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001969/0.4741, allocations: 0.562 MB / 459.5 MB, free: 10.1 MB / 350.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.0003184/0.4744, allocations: 160.4 kB / 459.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004474/0.4789, allocations: 2.564 MB / 462.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4789, allocations: 3.938 kB / 462.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.4808, allocations: 1.375 MB / 463.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.4834, allocations: 0.5546 MB / 464.1 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.4942, allocations: 7.612 MB / 471.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.4962, allocations: 2.416 MB / 474.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001811/0.498, allocations: 0.4907 MB / 474.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/0.4985, allocations: 151.4 kB / 474.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4985, allocations: 4 kB / 474.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Templates: time 0.0521/0.5506, allocations: 28.45 MB / 0.4915 GB, free: 14.14 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)