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.001329/0.001329, allocations: 112.6 kB / 17.06 MB, free: 6.09 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.001155/0.001155, allocations: 199 kB / 18 MB, free: 5.168 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.312/1.312, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001145/0.001145, allocations: 52.3 kB / 327.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09771, allocations: 46.61 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2198/0.3175, allocations: 15.83 MB / 390.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.3301, allocations: 5.393 MB / 395.7 MB, free: 208 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004128/0.3343, allocations: 96.38 kB / 395.8 MB, free: 180 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003767/0.3381, allocations: 1.113 MB / 396.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005388/0.3435, allocations: 1.348 MB / 398.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003134/0.3466, allocations: 0.9711 MB / 399.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006772/0.3534, allocations: 3.967 MB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00473/0.3582, allocations: 3.556 MB / 406.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003829/0.362, allocations: 1.889 MB / 408.7 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003961/0.366, allocations: 2.274 MB / 410.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009284/0.3669, allocations: 0.5158 MB / 411.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.3688, allocations: 0.7353 MB / 412.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3699, allocations: 1.289 MB / 413.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.3725, allocations: 2.239 MB / 415.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007191/0.3797, allocations: 6.894 MB / 422.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3797, allocations: 0 / 422.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3797, allocations: 0 / 422.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001686/0.3799, allocations: 0 / 422.6 MB, free: 15.45 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01065/0.3906, allocations: 4.662 MB / 427.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3906, allocations: 19.83 kB / 427.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002739/0.3934, allocations: 0.6714 MB / 428 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004472/0.3979, allocations: 2.381 MB / 430.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.3981, allocations: 255.3 kB / 430.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005229/0.3986, allocations: 348.3 kB / 430.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007088/0.4057, allocations: 4.46 MB / 435.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.252e-05/0.4058, allocations: 7.938 kB / 435.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002879/0.4061, allocations: 140 kB / 435.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.4062, allocations: 166.7 kB / 435.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005829/0.4121, allocations: 3.735 MB / 439.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02086/0.4329, allocations: 14.31 MB / 453.8 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004953/0.4379, allocations: 5.361 MB / 459.1 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.4398, allocations: 1.267 MB / 460.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006529/0.4463, allocations: 3.784 MB / 464.2 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.4464, allocations: 51.81 kB / 464.2 MB, free: 4.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.086e-06/0.4464, allocations: 0 / 464.2 MB, free: 4.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.009583/0.456, allocations: 5.467 MB / 469.7 MB, free: 14.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.456, allocations: 64.72 kB / 469.7 MB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/0.459, allocations: 2.09 MB / 471.8 MB, free: 12.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-05/0.4591, allocations: 49.7 kB / 471.9 MB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.4602, allocations: 1.661 MB / 473.5 MB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000366/0.4606, allocations: 461.4 kB / 474 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005191/0.4611, allocations: 339.2 kB / 474.3 MB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4612, allocations: 305.1 kB / 474.6 MB, free: 9.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.4623, allocations: 0.7184 MB / 475.3 MB, free: 9.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.4639, allocations: 1.349 MB / 476.7 MB, free: 7.383 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002868/0.4668, allocations: 2.227 MB / 478.9 MB, free: 4.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.4668, allocations: 11.94 kB / 478.9 MB, free: 4.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004266/0.4711, allocations: 2.513 MB / 481.4 MB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4712, allocations: 16.5 kB / 481.5 MB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.4712, allocations: 24 kB / 481.5 MB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004332/0.4716, allocations: 142.4 kB / 481.6 MB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.4733, allocations: 459.3 kB / 482.1 MB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002543/0.4758, allocations: 3.36 MB / 485.4 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.4777, allocations: 107.8 kB / 485.5 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.4778, allocations: 83.98 kB / 485.6 MB, free: 13.85 MB / 414.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.002182/0.48, allocations: 1.048 MB / 486.7 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006084/0.4806, allocations: 217.3 kB / 486.9 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003677/0.4843, allocations: 2.173 MB / 489.1 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4843, allocations: 12 kB / 489.1 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4843, allocations: 4 kB / 489.1 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.4844, allocations: 19.89 kB / 489.1 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0087/0.4931, allocations: 5.16 MB / 494.2 MB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4931, allocations: 0 / 494.2 MB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009751/0.4941, allocations: 223.7 kB / 494.5 MB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006916/0.4948, allocations: 271.5 kB / 494.7 MB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.192e-05/0.4949, allocations: 39.92 kB / 494.8 MB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006768/0.5017, allocations: 7.798 MB / 0.4908 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.5017, allocations: 4.219 kB / 0.4908 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005047/0.5067, allocations: 3.185 MB / 0.4939 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.5081, allocations: 454.4 kB / 0.4943 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006533/0.5088, allocations: 28 kB / 0.4944 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.5101, allocations: 67.92 kB / 0.4944 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.5103, allocations: 100.7 kB / 0.4945 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.891e-05/0.5104, allocations: 36 kB / 0.4946 GB, free: 8.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002782/0.5132, allocations: 1.435 MB / 0.496 GB, free: 6.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5132, allocations: 0 / 0.496 GB, free: 6.688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002653/0.5159, allocations: 0.5548 MB / 0.4965 GB, free: 6.133 MB / 430.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.0004238/0.5163, allocations: 174.9 kB / 0.4967 GB, free: 5.953 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00341/0.5197, allocations: 2.105 MB / 0.4987 GB, free: 3.801 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.5198, allocations: 0 / 0.4987 GB, free: 3.801 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.5218, allocations: 1.376 MB / 0.5001 GB, free: 2.375 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.5249, allocations: 0.5546 MB / 0.5006 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.5371, allocations: 6.045 MB / 0.5065 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/0.5397, allocations: 2.421 MB / 0.5089 GB, free: 9.262 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001616/0.5413, allocations: 498.5 kB / 0.5094 GB, free: 8.773 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.5417, allocations: 151.4 kB / 0.5095 GB, free: 8.625 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5418, allocations: 0 / 0.5095 GB, free: 8.625 MB / 446.1 MB Notification: Performance of Templates: time 0.05122/0.593, allocations: 27.52 MB / 0.5364 GB, free: 13.05 MB / 478.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)