Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0008764/0.0008816, allocations: 85.7 kB / 16.31 MB, free: 6.449 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.001032/0.001032, allocations: 177.5 kB / 17.21 MB, free: 6.32 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.664/1.664, allocations: 205.4 MB / 223.4 MB, free: 5.277 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.0005832/0.0005835, allocations: 12 kB / 280.1 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3855, allocations: 47.6 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01285/0.3984, allocations: 10.23 MB / 338 MB, free: 9.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009873/0.4084, allocations: 3.733 MB / 341.7 MB, free: 5.473 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003775/0.4122, allocations: 59.69 kB / 341.8 MB, free: 5.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.4155, allocations: 0.6911 MB / 342.5 MB, free: 4.719 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004479/0.42, allocations: 0.7963 MB / 343.3 MB, free: 3.918 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.4219, allocations: 331.5 kB / 343.6 MB, free: 3.594 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005958/0.4279, allocations: 3.286 MB / 346.9 MB, free: 300 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004182/0.4321, allocations: 2.061 MB / 348.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002625/0.4347, allocations: 1.117 MB / 350 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003426/0.4382, allocations: 1.56 MB / 351.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.4392, allocations: 171.9 kB / 351.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.441, allocations: 255.9 kB / 352 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001829/0.4428, allocations: 0.8995 MB / 352.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.4447, allocations: 0.6328 MB / 353.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005614/0.4503, allocations: 4.422 MB / 358 MB, free: 5.125 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4504, allocations: 4 kB / 358 MB, free: 5.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.4504, allocations: 0 / 358 MB, free: 5.121 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001301/0.4505, allocations: 0 / 358 MB, free: 5.121 MB / 286.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.006488/0.457, allocations: 3.237 MB / 361.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4571, allocations: 8.031 kB / 361.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009386/0.458, allocations: 395.6 kB / 361.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003033/0.4611, allocations: 1.865 MB / 363.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.4613, allocations: 225.6 kB / 363.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003957/0.4617, allocations: 283.9 kB / 364 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00612/0.4678, allocations: 3.677 MB / 367.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.247e-05/0.4679, allocations: 11.98 kB / 367.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/0.4681, allocations: 112 kB / 367.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001491/0.4683, allocations: 145.4 kB / 367.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005402/0.4737, allocations: 3.09 MB / 371 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02033/0.494, allocations: 11.68 MB / 382.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.497, allocations: 1.897 MB / 384.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/0.4995, allocations: 1.088 MB / 385.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004329/0.5, allocations: 219.1 kB / 385.9 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.5, allocations: 43.56 kB / 385.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 5.871e-06/0.5001, allocations: 0 / 385.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01695/0.517, allocations: 6.551 MB / 392.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.5172, allocations: 68.72 kB / 392.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005617/0.5228, allocations: 1.975 MB / 394.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.523, allocations: 45.7 kB / 394.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.5246, allocations: 1.412 MB / 396 MB, free: 14.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006432/0.5252, allocations: 488.9 kB / 396.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.5254, allocations: 40 kB / 396.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.5257, allocations: 373.9 kB / 396.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.5276, allocations: 0.8237 MB / 397.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.5299, allocations: 1.367 MB / 399 MB, free: 10.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.5322, allocations: 1.037 MB / 400.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.5322, allocations: 4 kB / 400.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006497/0.5387, allocations: 2.846 MB / 402.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.5388, allocations: 15.95 kB / 402.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/0.5388, allocations: 16 kB / 403 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009696/0.5398, allocations: 391.5 kB / 403.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.5413, allocations: 439.3 kB / 403.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007828/0.5491, allocations: 6.147 MB / 409.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/0.5517, allocations: 127.8 kB / 410 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003121/0.552, allocations: 76 kB / 410.1 MB, free: 15.33 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002832/0.5548, allocations: 0.9149 MB / 411 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008129/0.5557, allocations: 205.4 kB / 411.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006017/0.5617, allocations: 2.425 MB / 413.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/0.5617, allocations: 16 kB / 413.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/0.5618, allocations: 3.984 kB / 413.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/0.5618, allocations: 11.97 kB / 413.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/0.5772, allocations: 5.516 MB / 419.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.5773, allocations: 4 kB / 419.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.5784, allocations: 263.7 kB / 419.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009982/0.5794, allocations: 414.9 kB / 419.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/0.5796, allocations: 31.98 kB / 419.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007105/0.5867, allocations: 7.564 MB / 427.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.918e-06/0.5867, allocations: 12.19 kB / 427.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005669/0.5924, allocations: 3.61 MB / 431.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/0.5939, allocations: 478.4 kB / 431.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006635/0.5946, allocations: 39.92 kB / 431.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.596, allocations: 87.89 kB / 431.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.5963, allocations: 113.1 kB / 431.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5964, allocations: 39.98 kB / 431.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003478/0.5999, allocations: 1.346 MB / 433.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5999, allocations: 0 / 433.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002859/0.6027, allocations: 0.539 MB / 433.7 MB, free: 6.828 MB / 366.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 (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 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004618/0.6032, allocations: 162 kB / 433.9 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004201/0.6074, allocations: 2.485 MB / 436.4 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.6075, allocations: 0 / 436.4 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.6096, allocations: 1.503 MB / 437.9 MB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.613, allocations: 0.5027 MB / 438.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.6253, allocations: 6.758 MB / 445.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002821/0.6281, allocations: 2.189 MB / 447.3 MB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002101/0.6303, allocations: 0.4978 MB / 447.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007233/0.631, allocations: 155.4 kB / 448 MB, free: 8.352 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.631, allocations: 0 / 448 MB, free: 8.352 MB / 382.1 MB Notification: Performance of Templates: time 0.265/0.896, allocations: 27.27 MB / 475.2 MB, free: 99.86 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)