Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, 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.0009392/0.0009392, 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.767/1.767, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004686/0.0004686, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.294, allocations: 47.58 MB / 326.4 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01014/0.3042, allocations: 7.78 MB / 334.2 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007218/0.3115, allocations: 3.037 MB / 337.3 MB, free: 8.684 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.3131, allocations: 39.81 kB / 337.3 MB, free: 8.645 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3146, allocations: 0.5558 MB / 337.9 MB, free: 8.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002346/0.317, allocations: 0.6503 MB / 338.5 MB, free: 7.434 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008131/0.3178, allocations: 267.5 kB / 338.8 MB, free: 7.172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.3203, allocations: 1.661 MB / 340.4 MB, free: 5.508 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.3221, allocations: 1.499 MB / 341.9 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.3233, allocations: 0.8173 MB / 342.7 MB, free: 3.152 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.3246, allocations: 1.066 MB / 343.8 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002503/0.3249, allocations: 132 kB / 343.9 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005217/0.3254, allocations: 207.9 kB / 344.1 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006496/0.3261, allocations: 0.6427 MB / 344.8 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000447/0.3265, allocations: 492.5 kB / 345.3 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.3298, allocations: 3.292 MB / 348.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3299, allocations: 0 / 348.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3299, allocations: 4 kB / 348.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.597e-05/0.33, allocations: 0 / 348.6 MB, free: 13.31 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005388/0.3353, allocations: 2.476 MB / 351 MB, free: 10.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3354, allocations: 12.03 kB / 351.1 MB, free: 10.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007748/0.3362, allocations: 292.7 kB / 351.3 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00258/0.3388, allocations: 1.382 MB / 352.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.3389, allocations: 168.2 kB / 352.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003299/0.3393, allocations: 211.9 kB / 353.1 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005289/0.3446, allocations: 2.772 MB / 355.9 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.539e-05/0.3446, allocations: 4 kB / 355.9 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/0.3449, allocations: 91.98 kB / 356 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002286/0.3451, allocations: 116 kB / 356.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/0.3493, allocations: 2.351 MB / 358.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.363, allocations: 8.597 MB / 367 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/0.3655, allocations: 1.708 MB / 368.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002956/0.3658, allocations: 207.2 kB / 368.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.3659, allocations: 43.56 kB / 369 MB, free: 8.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 2.845e-06/0.3659, allocations: 0 / 369 MB, free: 8.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01251/0.3784, allocations: 6.082 MB / 375.1 MB, free: 2.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3785, allocations: 64.41 kB / 375.1 MB, free: 1.977 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3804, allocations: 1.386 MB / 376.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.401e-05/0.3804, allocations: 45.7 kB / 376.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000749/0.3812, allocations: 1.045 MB / 377.6 MB, free: 15.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.3815, allocations: 406.2 kB / 378 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.312e-05/0.3816, allocations: 32 kB / 378 MB, free: 15.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3818, allocations: 357.9 kB / 378.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.3829, allocations: 0.6988 MB / 379.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3844, allocations: 1.081 MB / 380.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.3858, allocations: 0.8613 MB / 381 MB, free: 11.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.3858, allocations: 4 kB / 381 MB, free: 11.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004006/0.3898, allocations: 2.413 MB / 383.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3898, allocations: 11.94 kB / 383.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.3899, allocations: 16 kB / 383.5 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009385/0.3908, allocations: 403.3 kB / 383.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.392, allocations: 339.5 kB / 384.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00656/0.3986, allocations: 6.374 MB / 390.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3998, allocations: 103.9 kB / 390.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-05/0.3999, allocations: 55.98 kB / 390.7 MB, free: 1.719 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (160): * Single equations (assignments): 156 * 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%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.4011, allocations: 0.6886 MB / 391.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.4014, allocations: 166 kB / 391.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003625/0.4051, allocations: 2.13 MB / 393.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4051, allocations: 12 kB / 393.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4051, allocations: 4 kB / 393.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.4051, allocations: 11.92 kB / 393.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007241/0.4124, allocations: 4.535 MB / 398.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.4124, allocations: 7.984 kB / 398.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000916/0.4133, allocations: 223.7 kB / 398.5 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.4144, allocations: 415.5 kB / 398.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.187e-05/0.4144, allocations: 43.97 kB / 398.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007509/0.422, allocations: 7.87 MB / 406.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.422, allocations: 4 kB / 406.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005123/0.4271, allocations: 3.309 MB / 410.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4282, allocations: 382.9 kB / 410.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.4284, allocations: 31.98 kB / 410.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008334/0.4292, allocations: 92.09 kB / 410.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/0.4295, allocations: 96.7 kB / 410.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.733e-05/0.4296, allocations: 39.97 kB / 410.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.431, allocations: 0.9457 MB / 411.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.431, allocations: 0 / 411.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001764/0.4328, allocations: 464.1 kB / 412.1 MB, free: 11.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (105): * Single equations (assignments): 101 * 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%) 11,(1,100.0%) 3,(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.0003391/0.4331, allocations: 151 kB / 412.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00362/0.4368, allocations: 2.232 MB / 414.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4368, allocations: 0 / 414.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/0.4389, allocations: 1.442 MB / 416 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.4406, allocations: 377.9 kB / 416.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.4479, allocations: 5.314 MB / 421.6 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/0.4494, allocations: 1.838 MB / 423.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001056/0.4505, allocations: 369.6 kB / 423.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003077/0.4508, allocations: 111.4 kB / 424 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4508, allocations: 0 / 424 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Templates: time 0.03861/0.4894, allocations: 22.07 MB / 446 MB, free: 9.195 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: