Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001312/0.001312, allocations: 172.7 kB / 15.95 MB, free: 208 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.515/1.515, allocations: 205.4 MB / 222.1 MB, free: 5.465 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.0006291/0.0006296, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2486, allocations: 47.6 MB / 326.5 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.009844/0.2584, allocations: 9.074 MB / 335.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006614/0.2651, allocations: 3.272 MB / 338.8 MB, free: 7.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.267, allocations: 47.75 kB / 338.9 MB, free: 7.055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.2693, allocations: 0.6135 MB / 339.5 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002909/0.2723, allocations: 0.7068 MB / 340.2 MB, free: 5.727 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.2734, allocations: 259.6 kB / 340.5 MB, free: 5.473 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004097/0.2775, allocations: 2.813 MB / 343.3 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002937/0.2805, allocations: 1.544 MB / 344.8 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001975/0.2825, allocations: 0.9415 MB / 345.8 MB, free: 128 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.2855, allocations: 1.288 MB / 347 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009691/0.2865, allocations: 144 kB / 347.2 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.2878, allocations: 219.9 kB / 347.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001315/0.2891, allocations: 0.7048 MB / 348.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.2904, allocations: 0.5159 MB / 348.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003949/0.2943, allocations: 3.518 MB / 352.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.2943, allocations: 0 / 352.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2944, allocations: 0 / 352.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.312e-05/0.2944, allocations: 0 / 352.1 MB, free: 9.719 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005171/0.2996, allocations: 2.625 MB / 354.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2997, allocations: 8.031 kB / 354.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007681/0.3004, allocations: 312.6 kB / 355.1 MB, free: 6.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.3029, allocations: 1.462 MB / 356.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.3031, allocations: 168.4 kB / 356.7 MB, free: 5.027 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/0.3034, allocations: 220 kB / 356.9 MB, free: 4.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00492/0.3083, allocations: 2.905 MB / 359.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.3084, allocations: 15.83 kB / 359.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.3086, allocations: 95.95 kB / 359.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001324/0.3087, allocations: 116.3 kB / 360 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004274/0.313, allocations: 2.433 MB / 362.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/0.3271, allocations: 9.153 MB / 371.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.3295, allocations: 1.709 MB / 373.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.3312, allocations: 0.9995 MB / 374.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002925/0.3315, allocations: 199.2 kB / 374.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.3316, allocations: 47.56 kB / 374.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 4.598e-06/0.3316, allocations: 0 / 374.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.01376/0.3453, allocations: 6.66 MB / 381.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.3454, allocations: 68.34 kB / 381.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.3482, allocations: 1.553 MB / 382.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.222e-05/0.3483, allocations: 45.7 kB / 382.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009564/0.3493, allocations: 1.104 MB / 384 MB, free: 8.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003943/0.3497, allocations: 433.8 kB / 384.4 MB, free: 8.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/0.3498, allocations: 32 kB / 384.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.35, allocations: 369.9 kB / 384.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.3512, allocations: 0.7027 MB / 385.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.3528, allocations: 1.151 MB / 386.7 MB, free: 6.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.3545, allocations: 0.8925 MB / 387.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.798e-05/0.3546, allocations: 8 kB / 387.6 MB, free: 5.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004903/0.3595, allocations: 2.518 MB / 390.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.3595, allocations: 15.98 kB / 390.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/0.3596, allocations: 12 kB / 390.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.3606, allocations: 423.4 kB / 390.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.3619, allocations: 363.5 kB / 390.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007414/0.3693, allocations: 6.549 MB / 397.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.3708, allocations: 107.9 kB / 397.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.371, allocations: 67.98 kB / 397.6 MB, free: 10.69 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001744/0.3727, allocations: 0.7121 MB / 398.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005154/0.3733, allocations: 177.8 kB / 398.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/0.3773, allocations: 2.21 MB / 400.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.3773, allocations: 12 kB / 400.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.3773, allocations: 4 kB / 400.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.3774, allocations: 7.969 kB / 400.7 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008809/0.3862, allocations: 4.802 MB / 405.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.3862, allocations: 4.062 kB / 405.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009764/0.3872, allocations: 231.7 kB / 405.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.3884, allocations: 451 kB / 406.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.3886, allocations: 35.98 kB / 406.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008508/0.3971, allocations: 7.971 MB / 414.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.3971, allocations: 7.938 kB / 414.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006115/0.4032, allocations: 3.244 MB / 417.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.4043, allocations: 402.8 kB / 417.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004995/0.4048, allocations: 32 kB / 417.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.406, allocations: 91.91 kB / 418 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002632/0.4063, allocations: 104.8 kB / 418.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.4064, allocations: 40.08 kB / 418.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00225/0.4087, allocations: 1.055 MB / 419.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4087, allocations: 4 kB / 419.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00217/0.4109, allocations: 484 kB / 419.6 MB, free: 3.773 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (108): * Single equations (assignments): 104 * 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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003746/0.4113, allocations: 167.4 kB / 419.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004015/0.4153, allocations: 2.29 MB / 422.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.4153, allocations: 0 / 422.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.4177, allocations: 1.482 MB / 423.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002875/0.4206, allocations: 457.2 kB / 424 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.4311, allocations: 5.611 MB / 429.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002405/0.4335, allocations: 1.864 MB / 431.5 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001482/0.435, allocations: 390.9 kB / 431.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.4355, allocations: 127.4 kB / 432 MB, free: 7.164 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4355, allocations: 0 / 432 MB, free: 7.164 MB / 366.1 MB Notification: Performance of Templates: time 0.2343/0.6698, allocations: 24.23 MB / 456.2 MB, free: 112.7 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)