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.0009581/0.0009581, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009075/0.0009076, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004748/0.0004751, allocations: 14.81 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2604, allocations: 47.58 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01473/0.2752, allocations: 12.82 MB / 339.3 MB, free: 6.672 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.2864, allocations: 5.126 MB / 344.4 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003464/0.2899, allocations: 83.62 kB / 344.5 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003233/0.2931, allocations: 0.9482 MB / 345.4 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006161/0.2993, allocations: 1.398 MB / 346.8 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.3018, allocations: 0.7173 MB / 347.5 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006797/0.3086, allocations: 2.7 MB / 350.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003694/0.3124, allocations: 2.528 MB / 352.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.3145, allocations: 1.265 MB / 354 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002558/0.3171, allocations: 1.591 MB / 355.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004704/0.3176, allocations: 204 kB / 355.8 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.319, allocations: 399.7 kB / 356.2 MB, free: 5.637 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008972/0.3199, allocations: 0.8488 MB / 357.1 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001177/0.3211, allocations: 0.7575 MB / 357.8 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005925/0.327, allocations: 5.516 MB / 363.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.327, allocations: 3.938 kB / 363.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.3271, allocations: 0 / 363.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001636/0.3272, allocations: 3.938 kB / 363.3 MB, free: 14.48 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.009469/0.3367, allocations: 3.94 MB / 367.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.3368, allocations: 8.031 kB / 367.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00323/0.34, allocations: 0.6784 MB / 368 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004721/0.3447, allocations: 2.283 MB / 370.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.345, allocations: 270.9 kB / 370.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005326/0.3456, allocations: 343.9 kB / 370.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008143/0.3537, allocations: 4.402 MB / 375.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.53e-05/0.3538, allocations: 7.938 kB / 375.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003255/0.3541, allocations: 148 kB / 375.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001794/0.3543, allocations: 166.7 kB / 375.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006753/0.3611, allocations: 3.712 MB / 379.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02482/0.3859, allocations: 14.48 MB / 393.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005483/0.3915, allocations: 5.356 MB / 399.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006962/0.3985, allocations: 3.205 MB / 402.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.286e-05/0.3986, allocations: 43.88 kB / 402.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 4.188e-06/0.3986, allocations: 0 / 402.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01137/0.41, allocations: 5.77 MB / 408.1 MB, free: 128 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.4101, allocations: 68.72 kB / 408.2 MB, free: 48 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/0.4133, allocations: 1.999 MB / 410.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.4134, allocations: 49.7 kB / 410.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.4146, allocations: 1.638 MB / 411.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004159/0.415, allocations: 0.4968 MB / 412.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.746e-05/0.4151, allocations: 36 kB / 412.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4153, allocations: 381.9 kB / 412.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4165, allocations: 0.7495 MB / 413.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.4182, allocations: 1.361 MB / 414.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.4197, allocations: 0.9862 MB / 415.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.4197, allocations: 8 kB / 415.9 MB, free: 8 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004333/0.4241, allocations: 2.583 MB / 418.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.4241, allocations: 12 kB / 418.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.004e-05/0.4242, allocations: 20 kB / 418.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003965/0.4246, allocations: 143 kB / 418.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/0.4263, allocations: 487.2 kB / 419.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.4291, allocations: 3.087 MB / 422.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.4307, allocations: 115.8 kB / 422.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.4309, allocations: 84.31 kB / 422.4 MB, free: 1.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002069/0.433, allocations: 1.055 MB / 423.5 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.4334, allocations: 213.4 kB / 423.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003903/0.4373, allocations: 2.294 MB / 426 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.4374, allocations: 19.94 kB / 426 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4374, allocations: 4 kB / 426 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.4374, allocations: 7.969 kB / 426 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009132/0.4465, allocations: 5.409 MB / 431.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.4466, allocations: 352 / 431.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.4477, allocations: 255.6 kB / 431.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000718/0.4485, allocations: 271.2 kB / 431.9 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.4486, allocations: 32 kB / 432 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006606/0.4552, allocations: 7.15 MB / 439.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.4552, allocations: 7.922 kB / 439.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005564/0.4608, allocations: 3.529 MB / 442.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.4621, allocations: 470.2 kB / 443.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.4623, allocations: 32 kB / 443.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008759/0.4632, allocations: 71.92 kB / 443.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.4635, allocations: 105.1 kB / 443.3 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.459e-05/0.4636, allocations: 47.98 kB / 443.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002102/0.4657, allocations: 1.348 MB / 444.7 MB, free: 9.875 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4657, allocations: 0 / 444.7 MB, free: 9.875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001976/0.4677, allocations: 0.5626 MB / 445.3 MB, free: 9.312 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003545/0.468, allocations: 163 kB / 445.4 MB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003214/0.4713, allocations: 2.178 MB / 447.6 MB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4713, allocations: 3.938 kB / 447.6 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.4733, allocations: 1.428 MB / 449 MB, free: 5.438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.4754, allocations: 0.5027 MB / 449.5 MB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1784/0.6538, allocations: 7.42 MB / 457 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002336/0.6562, allocations: 2.482 MB / 459.4 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002026/0.6583, allocations: 0.4958 MB / 459.9 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004481/0.6587, allocations: 153.9 kB / 460.1 MB, free: 107 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6587, allocations: 0 / 460.1 MB, free: 107 MB / 382.1 MB Notification: Performance of Templates: time 0.04185/0.7006, allocations: 25.99 MB / 486.1 MB, free: 87.48 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: