Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00833/0.00833, allocations: 102 kB / 15.73 MB, free: 6.051 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.001254/0.001254, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.625/1.625, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001935/0.001936, allocations: 50.48 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1526, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01629/0.169, allocations: 11.59 MB / 384.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009875/0.1789, allocations: 3.957 MB / 388.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00427/0.1833, allocations: 63.69 kB / 388.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.1876, allocations: 0.8693 MB / 389.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005631/0.1933, allocations: 0.9473 MB / 390.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002003/0.1953, allocations: 0.5227 MB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005919/0.2013, allocations: 3.293 MB / 394.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004135/0.2054, allocations: 2.993 MB / 397.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.2087, allocations: 1.526 MB / 399 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005024/0.2137, allocations: 1.973 MB / 400.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001101/0.2149, allocations: 420 kB / 401.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.2164, allocations: 0.5233 MB / 401.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.218, allocations: 1.223 MB / 403.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003313/0.2214, allocations: 1.878 MB / 405 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009767/0.2311, allocations: 5.522 MB / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.2312, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.2312, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000248/0.2315, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.0118/0.2433, allocations: 3.806 MB / 414.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.484e-05/0.2434, allocations: 15.89 kB / 414.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.2447, allocations: 392.5 kB / 414.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004047/0.2488, allocations: 1.95 MB / 416.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.249, allocations: 210 kB / 416.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005517/0.2495, allocations: 291.8 kB / 417.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007495/0.257, allocations: 3.697 MB / 420.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.726e-05/0.2572, allocations: 11.89 kB / 420.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002759/0.2575, allocations: 112 kB / 421 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.2577, allocations: 141.5 kB / 421.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005734/0.2634, allocations: 3.102 MB / 424.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0257/0.2892, allocations: 11.51 MB / 435.7 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003758/0.293, allocations: 1.9 MB / 437.6 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002435/0.2955, allocations: 1.068 MB / 438.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004123/0.296, allocations: 215.1 kB / 438.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.059e-05/0.2961, allocations: 43.56 kB / 438.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 5.15e-06/0.2961, allocations: 0 / 438.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01797/0.3141, allocations: 6.535 MB / 445.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.3143, allocations: 64.72 kB / 445.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006296/0.3206, allocations: 1.983 MB / 447.5 MB, free: 5.867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005145/0.3212, allocations: 49.7 kB / 447.6 MB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.3229, allocations: 1.412 MB / 449 MB, free: 4.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008986/0.3238, allocations: 497 kB / 449.4 MB, free: 3.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009957/0.3248, allocations: 327.2 kB / 449.8 MB, free: 3.562 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.325, allocations: 309 kB / 450.1 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.3269, allocations: 0.8159 MB / 450.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002106/0.329, allocations: 1.375 MB / 452.3 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3512/0.6802, allocations: 2.368 MB / 454.6 MB, free: 67.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-05/0.6803, allocations: 5.844 kB / 454.6 MB, free: 67.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007646/0.688, allocations: 2.85 MB / 457.5 MB, free: 67.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.6881, allocations: 12.69 kB / 457.5 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.323e-05/0.6881, allocations: 22.47 kB / 457.5 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.6894, allocations: 390.4 kB / 457.9 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001876/0.6913, allocations: 431.9 kB / 458.3 MB, free: 67.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007673/0.699, allocations: 6.694 MB / 465 MB, free: 61.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.7016, allocations: 133.7 kB / 465.1 MB, free: 61.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.7019, allocations: 80.23 kB / 465.2 MB, free: 61.69 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * 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.002408/0.7043, allocations: 0.9115 MB / 466.1 MB, free: 61.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008685/0.7052, allocations: 203.6 kB / 466.3 MB, free: 61.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004887/0.7101, allocations: 2.422 MB / 468.8 MB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.7102, allocations: 13.75 kB / 468.8 MB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.7102, allocations: 2.75 kB / 468.8 MB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.906e-05/0.7102, allocations: 13.73 kB / 468.8 MB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.7216, allocations: 5.504 MB / 474.3 MB, free: 57.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.7216, allocations: 3.938 kB / 474.3 MB, free: 57.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.7227, allocations: 264.9 kB / 474.6 MB, free: 57.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009833/0.7237, allocations: 412.2 kB / 475 MB, free: 57.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.896e-05/0.7238, allocations: 39.45 kB / 475 MB, free: 57.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006298/0.7301, allocations: 8.241 MB / 483.2 MB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.7301, allocations: 7.75 kB / 483.2 MB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005358/0.7355, allocations: 3.604 MB / 486.8 MB, free: 48.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/0.737, allocations: 471.1 kB / 487.3 MB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003322/0.7374, allocations: 36.83 kB / 487.3 MB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.7385, allocations: 91.89 kB / 487.4 MB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.7388, allocations: 105 kB / 487.5 MB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.252e-05/0.7389, allocations: 40 kB / 487.6 MB, free: 47.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002262/0.7411, allocations: 1.369 MB / 488.9 MB, free: 46.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7411, allocations: 0 / 488.9 MB, free: 46.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002785/0.7439, allocations: 0.5371 MB / 489.5 MB, free: 45.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005739/0.7445, allocations: 209.9 kB / 489.7 MB, free: 45.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003923/0.7485, allocations: 2.487 MB / 492.2 MB, free: 43.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.7485, allocations: 0 / 492.2 MB, free: 43.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.7502, allocations: 1.493 MB / 493.7 MB, free: 41.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.7526, allocations: 0.5395 MB / 494.2 MB, free: 41.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009223/0.7619, allocations: 5.661 MB / 499.9 MB, free: 35.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.7635, allocations: 2.201 MB / 0.4903 GB, free: 33.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001718/0.7653, allocations: 0.494 MB / 0.4908 GB, free: 32.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004023/0.7657, allocations: 151.4 kB / 0.4909 GB, free: 32.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.424e-06/0.7657, allocations: 4 kB / 0.4909 GB, free: 32.59 MB / 382.1 MB Notification: Performance of Templates: time 0.05152/0.8172, allocations: 30.12 MB / 0.5203 GB, free: 2.441 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)