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.0009998/0.0009997, allocations: 91.61 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.001127/0.001127, 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.636/1.636, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004795/0.0004796, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2499, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.009849/0.2598, allocations: 8.456 MB / 334.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007287/0.2672, allocations: 2.963 MB / 337.9 MB, free: 8.059 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.2686, allocations: 43.75 kB / 337.9 MB, free: 8.016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.2701, allocations: 0.5397 MB / 338.5 MB, free: 7.473 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.2723, allocations: 0.6486 MB / 339.1 MB, free: 6.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.273, allocations: 243.7 kB / 339.4 MB, free: 6.582 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003086/0.2761, allocations: 2.599 MB / 342 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.2781, allocations: 1.496 MB / 343.5 MB, free: 2.441 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.2797, allocations: 0.8754 MB / 344.3 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.2815, allocations: 1.214 MB / 345.6 MB, free: 352 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002646/0.2817, allocations: 136 kB / 345.7 MB, free: 216 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005674/0.2823, allocations: 211.9 kB / 345.9 MB, free: 4 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007393/0.2831, allocations: 0.6815 MB / 346.6 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005826/0.2837, allocations: 492.5 kB / 347.1 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00312/0.2868, allocations: 3.335 MB / 350.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2868, allocations: 0 / 350.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2868, allocations: 4 kB / 350.4 MB, free: 11.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001041/0.2869, allocations: 0 / 350.4 MB, free: 11.48 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.005261/0.2922, allocations: 2.487 MB / 352.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2922, allocations: 12.03 kB / 352.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.293, allocations: 288.7 kB / 353.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.2953, allocations: 1.382 MB / 354.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.2955, allocations: 160.2 kB / 354.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003223/0.2958, allocations: 223.9 kB / 354.9 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004916/0.3008, allocations: 2.784 MB / 357.7 MB, free: 3.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.101e-05/0.3008, allocations: 4 kB / 357.7 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002012/0.301, allocations: 91.97 kB / 357.8 MB, free: 3.852 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.3012, allocations: 112.1 kB / 357.9 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004319/0.3055, allocations: 2.351 MB / 360.3 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02007/0.3256, allocations: 8.636 MB / 368.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003652/0.3293, allocations: 1.718 MB / 370.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003029/0.3324, allocations: 0.9801 MB / 371.6 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004387/0.3329, allocations: 199.2 kB / 371.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/0.3329, allocations: 51.5 kB / 371.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 4.93e-06/0.333, allocations: 4 kB / 371.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.02449/0.3575, allocations: 6.197 MB / 378.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.3576, allocations: 68.34 kB / 378.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/0.3618, allocations: 1.429 MB / 379.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.362, allocations: 41.7 kB / 379.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.3634, allocations: 1.041 MB / 380.6 MB, free: 12.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000627/0.3641, allocations: 406.1 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.3642, allocations: 32 kB / 381.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002602/0.3645, allocations: 361.9 kB / 381.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/0.3669, allocations: 0.691 MB / 382.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002719/0.3696, allocations: 1.074 MB / 383.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/0.3724, allocations: 0.854 MB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.3724, allocations: 8 kB / 384 MB, free: 8.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.008263/0.3807, allocations: 2.41 MB / 386.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.318e-05/0.3808, allocations: 8 kB / 386.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.875e-05/0.3808, allocations: 12 kB / 386.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.3828, allocations: 419.3 kB / 386.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002753/0.3856, allocations: 335.5 kB / 387.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/0.3979, allocations: 6.456 MB / 393.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002625/0.4006, allocations: 107.9 kB / 393.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003147/0.4009, allocations: 52 kB / 393.8 MB, free: 14.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0025/0.4034, allocations: 0.6886 MB / 394.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000802/0.4043, allocations: 162 kB / 394.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007358/0.4117, allocations: 2.134 MB / 396.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.4117, allocations: 12 kB / 396.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.4117, allocations: 4 kB / 396.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.341e-05/0.4118, allocations: 7.969 kB / 396.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.427, allocations: 4.605 MB / 401.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/0.4271, allocations: 4 kB / 401.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/0.429, allocations: 219.6 kB / 401.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/0.4313, allocations: 443.6 kB / 402.1 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/0.4315, allocations: 35.98 kB / 402.1 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/0.4462, allocations: 7.916 MB / 410 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/0.4463, allocations: 7.938 kB / 410 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.4565, allocations: 3.132 MB / 413.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.4581, allocations: 387 kB / 413.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005932/0.4587, allocations: 35.92 kB / 413.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.4606, allocations: 87.91 kB / 413.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003618/0.461, allocations: 104.7 kB / 413.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/0.4612, allocations: 39.98 kB / 413.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002992/0.4642, allocations: 0.9808 MB / 414.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4642, allocations: 0 / 414.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003087/0.4673, allocations: 456.1 kB / 415.2 MB, free: 8.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * 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%) 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.0005501/0.4679, allocations: 151 kB / 415.4 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006665/0.4746, allocations: 2.231 MB / 417.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.4746, allocations: 8.062 kB / 417.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004238/0.4789, allocations: 1.446 MB / 419.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.4814, allocations: 405.5 kB / 419.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00923/0.4907, allocations: 5.316 MB / 424.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/0.4926, allocations: 1.799 MB / 426.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001393/0.494, allocations: 361.6 kB / 426.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004627/0.4945, allocations: 123.4 kB / 427.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4945, allocations: 0 / 427.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of Templates: time 0.04045/0.535, allocations: 22.4 MB / 449.5 MB, free: 5.812 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (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)