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.001373/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001851/0.001851, allocations: 199.2 kB / 16.14 MB, free: 6.715 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.782/1.782, allocations: 205.1 MB / 222 MB, free: 4.766 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.001394/0.001394, allocations: 55.91 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3039, allocations: 46.62 MB / 324.7 MB, free: 2.156 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01283/0.3168, allocations: 10.2 MB / 334.9 MB, free: 10.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008157/0.325, allocations: 3.441 MB / 338.3 MB, free: 6.617 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003153/0.3282, allocations: 51.69 kB / 338.4 MB, free: 6.566 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003289/0.3315, allocations: 0.6721 MB / 339 MB, free: 5.891 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004909/0.3365, allocations: 0.7537 MB / 339.8 MB, free: 5.133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.3383, allocations: 371.6 kB / 340.2 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005649/0.344, allocations: 3.094 MB / 343.3 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003367/0.3474, allocations: 2.005 MB / 345.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.3498, allocations: 1.093 MB / 346.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002893/0.3527, allocations: 1.518 MB / 347.9 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009887/0.3537, allocations: 208 kB / 348.1 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.3552, allocations: 327.7 kB / 348.4 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.3563, allocations: 0.8099 MB / 349.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002752/0.359, allocations: 1.372 MB / 350.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005728/0.3648, allocations: 4.225 MB / 354.8 MB, free: 6.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.578e-05/0.3649, allocations: 3.984 kB / 354.8 MB, free: 6.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.3649, allocations: 0 / 354.8 MB, free: 6.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002662/0.3651, allocations: 0 / 354.8 MB, free: 6.016 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.01015/0.3753, allocations: 3.049 MB / 357.9 MB, free: 2.902 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.707e-05/0.3754, allocations: 8.031 kB / 357.9 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.3765, allocations: 321.4 kB / 358.2 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003053/0.3796, allocations: 1.505 MB / 359.7 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.3798, allocations: 176.5 kB / 359.9 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004203/0.3802, allocations: 227.7 kB / 360.1 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006057/0.3863, allocations: 2.913 MB / 363 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-05/0.3864, allocations: 11.89 kB / 363 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.3867, allocations: 88 kB / 363.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.3868, allocations: 112.3 kB / 363.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004861/0.3917, allocations: 2.433 MB / 365.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.4093, allocations: 9.113 MB / 374.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.4119, allocations: 1.702 MB / 376.4 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.4137, allocations: 0.9917 MB / 377.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003223/0.414, allocations: 199.2 kB / 377.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.4141, allocations: 55.53 kB / 377.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.386e-06/0.4141, allocations: 0 / 377.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01476/0.4289, allocations: 6.524 MB / 384.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.429, allocations: 68.39 kB / 384.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.4314, allocations: 1.561 MB / 385.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.4317, allocations: 49.7 kB / 385.9 MB, free: 6.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009452/0.4326, allocations: 1.112 MB / 387 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000479/0.4331, allocations: 429.8 kB / 387.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004629/0.4336, allocations: 267.3 kB / 387.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4337, allocations: 309.1 kB / 388 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.435, allocations: 0.7027 MB / 388.7 MB, free: 3.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.4366, allocations: 1.139 MB / 389.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002891/0.4395, allocations: 1.968 MB / 391.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.4395, allocations: 4 kB / 391.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004759/0.4443, allocations: 2.511 MB / 394.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.4443, allocations: 11.98 kB / 394.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/0.4444, allocations: 16 kB / 394.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.4455, allocations: 431.2 kB / 394.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.4469, allocations: 343.5 kB / 395.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007225/0.4541, allocations: 6.554 MB / 401.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4557, allocations: 103.8 kB / 401.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.456, allocations: 67.98 kB / 401.8 MB, free: 5.277 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001846/0.4578, allocations: 0.7166 MB / 402.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006023/0.4585, allocations: 169.9 kB / 402.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005587/0.4641, allocations: 2.182 MB / 404.9 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/0.4641, allocations: 15.94 kB / 404.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.4642, allocations: 4 kB / 404.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.629e-05/0.4642, allocations: 11.97 kB / 404.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01313/0.4773, allocations: 4.789 MB / 409.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/0.4774, allocations: 4.531 kB / 409.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.4788, allocations: 219.7 kB / 409.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/0.4807, allocations: 458.8 kB / 410.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002825/0.481, allocations: 40.06 kB / 410.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.4922, allocations: 7.971 MB / 418.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.4923, allocations: 7.938 kB / 418.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006808/0.4991, allocations: 3.212 MB / 421.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/0.5007, allocations: 394.9 kB / 422 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005419/0.5013, allocations: 31.98 kB / 422 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.5028, allocations: 87.84 kB / 422.1 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.5032, allocations: 100.8 kB / 422.2 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/0.5034, allocations: 43.92 kB / 422.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002662/0.5061, allocations: 1.07 MB / 423.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5061, allocations: 0 / 423.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003585/0.5097, allocations: 492 kB / 423.8 MB, free: 14.42 MB / 366.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007711/0.5105, allocations: 194.9 kB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00591/0.5164, allocations: 2.29 MB / 426.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/0.5165, allocations: 4 kB / 426.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003709/0.5203, allocations: 1.467 MB / 427.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004298/0.5246, allocations: 453.5 kB / 428.2 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.5369, allocations: 5.724 MB / 433.9 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/0.539, allocations: 1.871 MB / 435.8 MB, free: 2.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001557/0.5406, allocations: 386.8 kB / 436.2 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.5411, allocations: 123.4 kB / 436.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5411, allocations: 0 / 436.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of Templates: time 0.2206/0.7617, allocations: 25.29 MB / 461.6 MB, free: 103.8 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)