Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001377/0.001377, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001704/0.001704, allocations: 191.7 kB / 16.25 MB, free: 6.621 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.454/1.454, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001649/0.001649, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2537, allocations: 46.63 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0164/0.2701, allocations: 15.62 MB / 340.5 MB, free: 4.418 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.2807, allocations: 5.313 MB / 345.8 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003305/0.2841, allocations: 91.56 kB / 345.9 MB, free: 15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003315/0.2874, allocations: 0.9714 MB / 346.9 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004482/0.2919, allocations: 1.205 MB / 348.1 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00238/0.2943, allocations: 0.8733 MB / 348.9 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005908/0.3003, allocations: 4.033 MB / 353 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005355/0.3056, allocations: 3.544 MB / 356.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002866/0.3085, allocations: 1.83 MB / 358.3 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003454/0.312, allocations: 2.257 MB / 360.6 MB, free: 168 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009944/0.313, allocations: 0.5157 MB / 361.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.315, allocations: 0.7458 MB / 361.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.3166, allocations: 1.289 MB / 363.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003792/0.3204, allocations: 2.248 MB / 365.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.3308, allocations: 6.8 MB / 372.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3309, allocations: 0 / 372.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3309, allocations: 0 / 372.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001928/0.3311, allocations: 0 / 372.2 MB, free: 4.531 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.01202/0.3431, allocations: 4.653 MB / 376.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.3432, allocations: 19.83 kB / 376.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003082/0.3463, allocations: 0.6714 MB / 377.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/0.3504, allocations: 2.33 MB / 379.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.3506, allocations: 271.5 kB / 380.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005762/0.3512, allocations: 343.8 kB / 380.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007888/0.3591, allocations: 4.472 MB / 384.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.917e-05/0.3592, allocations: 3.938 kB / 384.9 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002957/0.3595, allocations: 144 kB / 385.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.3597, allocations: 166.8 kB / 385.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006382/0.3661, allocations: 3.739 MB / 389 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02266/0.3888, allocations: 14.48 MB / 403.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005604/0.3944, allocations: 5.381 MB / 408.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001994/0.3965, allocations: 1.274 MB / 410.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006543/0.403, allocations: 3.811 MB / 413.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.4031, allocations: 43.88 kB / 414 MB, free: 9.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 2.875e-06/0.4031, allocations: 0 / 414 MB, free: 9.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.009277/0.4124, allocations: 5.463 MB / 419.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.4125, allocations: 68.66 kB / 419.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/0.4154, allocations: 2.098 MB / 421.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.471e-05/0.4155, allocations: 53.64 kB / 421.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.4166, allocations: 1.657 MB / 423.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.417, allocations: 461.4 kB / 423.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000477/0.4174, allocations: 339.1 kB / 424.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.4175, allocations: 305.1 kB / 424.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.4186, allocations: 0.7145 MB / 425.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.4201, allocations: 1.353 MB / 426.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002691/0.4228, allocations: 2.223 MB / 428.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.4228, allocations: 7.938 kB / 428.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003757/0.4266, allocations: 2.514 MB / 431.2 MB, free: 7.211 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.4266, allocations: 23.98 kB / 431.2 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.4267, allocations: 20 kB / 431.2 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004062/0.4271, allocations: 142.5 kB / 431.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/0.4287, allocations: 467.3 kB / 431.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.4312, allocations: 3.352 MB / 435.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.4327, allocations: 111.9 kB / 435.3 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.4328, allocations: 84 kB / 435.4 MB, free: 2.734 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.001945/0.4348, allocations: 1.044 MB / 436.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.4353, allocations: 213.3 kB / 436.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.4389, allocations: 2.181 MB / 438.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/0.4389, allocations: 12 kB / 438.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.4389, allocations: 8.062 kB / 438.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.439, allocations: 7.969 kB / 438.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008347/0.4473, allocations: 5.165 MB / 444 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4473, allocations: 3.938 kB / 444 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009688/0.4483, allocations: 223.9 kB / 444.2 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007042/0.449, allocations: 283.2 kB / 444.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.755e-05/0.4491, allocations: 31.98 kB / 444.5 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007217/0.4564, allocations: 7.798 MB / 452.3 MB, free: 1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.4564, allocations: 4 kB / 452.3 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2016/0.658, allocations: 3.179 MB / 455.5 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.6595, allocations: 455.2 kB / 456 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.6598, allocations: 28.41 kB / 456 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.6608, allocations: 73.39 kB / 456.1 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.6611, allocations: 92.56 kB / 456.2 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.6612, allocations: 46.84 kB / 456.2 MB, free: 108.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002149/0.6633, allocations: 1.422 MB / 457.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6633, allocations: 0 / 457.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002549/0.6659, allocations: 0.5641 MB / 458.2 MB, free: 108.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.0003759/0.6663, allocations: 154.5 kB / 458.3 MB, free: 108.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004585/0.6709, allocations: 2.56 MB / 460.9 MB, free: 107.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.6709, allocations: 1.531 kB / 460.9 MB, free: 107.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.6726, allocations: 1.374 MB / 462.3 MB, free: 106.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.6752, allocations: 0.5601 MB / 462.8 MB, free: 106.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.6853, allocations: 7.613 MB / 470.4 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001886/0.6872, allocations: 2.418 MB / 472.9 MB, free: 100.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001808/0.689, allocations: 499.4 kB / 473.4 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/0.6895, allocations: 158.3 kB / 473.5 MB, free: 100.2 MB / 382.1 MB Notification: Performance of SimCode: time 2.094e-06/0.6895, allocations: 0 / 473.5 MB, free: 100.2 MB / 382.1 MB Notification: Performance of Templates: time 0.04717/0.7367, allocations: 28.44 MB / 0.4902 GB, free: 72.04 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)