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.001567/0.001567, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001991/0.001991, allocations: 172.7 kB / 15.95 MB, free: 192 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.671/1.671, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0005189/0.000519, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4194/0.42, allocations: 47.58 MB / 326.5 MB, free: 1.246 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01736/0.4374, allocations: 10.24 MB / 336.7 MB, free: 9.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.4515, allocations: 3.722 MB / 340.4 MB, free: 5.391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004408/0.456, allocations: 55.69 kB / 340.5 MB, free: 5.336 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.4599, allocations: 0.6911 MB / 341.2 MB, free: 4.641 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00722/0.4672, allocations: 0.8002 MB / 342 MB, free: 3.836 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00249/0.4698, allocations: 335.5 kB / 342.3 MB, free: 3.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.008326/0.4781, allocations: 3.286 MB / 345.6 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006797/0.485, allocations: 2.057 MB / 347.7 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004263/0.4893, allocations: 1.113 MB / 348.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004982/0.4944, allocations: 1.572 MB / 350.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001985/0.4965, allocations: 168 kB / 350.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002536/0.499, allocations: 255.8 kB / 350.8 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002972/0.502, allocations: 0.9073 MB / 351.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002692/0.5048, allocations: 0.625 MB / 352.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008881/0.5137, allocations: 4.426 MB / 356.7 MB, free: 5.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.918e-05/0.5138, allocations: 0 / 356.7 MB, free: 5.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.071e-06/0.5138, allocations: 0 / 356.7 MB, free: 5.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000313/0.5142, allocations: 0 / 356.7 MB, free: 5.035 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.01126/0.5254, allocations: 3.229 MB / 359.9 MB, free: 1.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.5255, allocations: 12.03 kB / 360 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002808/0.5283, allocations: 387.6 kB / 360.3 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005419/0.5338, allocations: 1.876 MB / 362.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.5341, allocations: 217.7 kB / 362.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009996/0.5351, allocations: 283.9 kB / 362.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009008/0.5442, allocations: 3.685 MB / 366.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.5443, allocations: 7.938 kB / 366.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003558/0.5447, allocations: 112 kB / 366.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/0.5449, allocations: 149.4 kB / 366.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007851/0.5528, allocations: 3.082 MB / 369.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03221/0.585, allocations: 11.69 MB / 381.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003681/0.5888, allocations: 1.89 MB / 383.3 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002305/0.5912, allocations: 1.088 MB / 384.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004026/0.5916, allocations: 211.1 kB / 384.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.5917, allocations: 47.56 kB / 384.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.366e-06/0.5917, allocations: 0 / 384.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01504/0.6067, allocations: 6.55 MB / 391.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.6068, allocations: 72.66 kB / 391.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004723/0.6116, allocations: 1.975 MB / 393.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.6118, allocations: 49.7 kB / 393.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.6131, allocations: 1.409 MB / 394.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005783/0.6137, allocations: 488.9 kB / 395.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.6138, allocations: 36 kB / 395.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.614, allocations: 377.9 kB / 395.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.6155, allocations: 0.812 MB / 396.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.6173, allocations: 1.371 MB / 397.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.6191, allocations: 1.049 MB / 398.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.051e-05/0.6192, allocations: 4 kB / 398.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005652/0.6248, allocations: 2.843 MB / 401.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.6249, allocations: 19.95 kB / 401.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-05/0.6249, allocations: 16 kB / 401.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.626, allocations: 387.2 kB / 402.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.6276, allocations: 435.2 kB / 402.5 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/0.6346, allocations: 6.151 MB / 408.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.6365, allocations: 131.8 kB / 408.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00026/0.6368, allocations: 75.98 kB / 408.9 MB, free: 15.25 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.002306/0.6391, allocations: 0.907 MB / 409.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009406/0.6401, allocations: 209.4 kB / 410 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005213/0.6453, allocations: 2.421 MB / 412.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.6453, allocations: 12 kB / 412.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/0.6454, allocations: 4 kB / 412.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/0.6454, allocations: 11.97 kB / 412.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/0.6582, allocations: 5.531 MB / 417.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.6583, allocations: 4.531 kB / 417.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.6595, allocations: 259.6 kB / 418.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.6606, allocations: 406.9 kB / 418.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/0.6608, allocations: 35.98 kB / 418.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007948/0.6687, allocations: 7.568 MB / 426.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.6688, allocations: 4 kB / 426.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006321/0.6751, allocations: 3.613 MB / 429.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/0.6768, allocations: 478.3 kB / 430.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008205/0.6776, allocations: 32 kB / 430.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.6792, allocations: 91.89 kB / 430.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/0.6795, allocations: 105.1 kB / 430.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/0.6797, allocations: 43.98 kB / 430.6 MB, free: 8.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003484/0.6832, allocations: 1.35 MB / 431.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6832, allocations: 0 / 431.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003243/0.6864, allocations: 0.539 MB / 432.4 MB, free: 6.746 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.0006003/0.687, allocations: 167 kB / 432.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005069/0.6921, allocations: 2.481 MB / 435.1 MB, free: 4.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6922, allocations: 0 / 435.1 MB, free: 4.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002493/0.6947, allocations: 1.495 MB / 436.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004519/0.6992, allocations: 0.5187 MB / 437.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01494/0.7142, allocations: 6.753 MB / 443.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004288/0.7185, allocations: 2.201 MB / 446.1 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002208/0.7208, allocations: 0.494 MB / 446.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/0.7212, allocations: 151.4 kB / 446.7 MB, free: 8.262 MB / 382.1 MB Notification: Performance of SimCode: time 3.416e-06/0.7212, allocations: 0 / 446.7 MB, free: 8.262 MB / 382.1 MB Notification: Performance of Templates: time 0.2874/1.009, allocations: 27.28 MB / 474 MB, free: 99.72 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)