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.001223/0.001222, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.533/1.533, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001514/0.001515, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2978, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01365/0.3115, allocations: 10.26 MB / 335.6 MB, free: 9.633 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009759/0.3214, allocations: 3.484 MB / 339.1 MB, free: 6.137 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003106/0.3245, allocations: 51.75 kB / 339.1 MB, free: 6.086 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002892/0.3275, allocations: 0.7646 MB / 339.9 MB, free: 5.316 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005175/0.3327, allocations: 0.8268 MB / 340.7 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.3346, allocations: 423.4 kB / 341.1 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005611/0.3402, allocations: 2.755 MB / 343.9 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005053/0.3453, allocations: 2.37 MB / 346.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003466/0.3488, allocations: 1.25 MB / 347.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00401/0.3529, allocations: 1.584 MB / 349.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001724/0.3546, allocations: 336 kB / 349.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002567/0.3572, allocations: 435.8 kB / 349.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001681/0.3589, allocations: 0.935 MB / 350.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003143/0.3621, allocations: 1.501 MB / 352.3 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004685/0.3668, allocations: 4.334 MB / 356.6 MB, free: 4.484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.3668, allocations: 0 / 356.6 MB, free: 4.484 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3668, allocations: 4 kB / 356.6 MB, free: 4.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.878e-05/0.3669, allocations: 0 / 356.6 MB, free: 4.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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00604/0.373, allocations: 3.053 MB / 359.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.373, allocations: 15.89 kB / 359.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007584/0.3738, allocations: 309.4 kB / 360 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.3762, allocations: 1.517 MB / 361.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.3764, allocations: 172.5 kB / 361.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/0.3767, allocations: 223.9 kB / 361.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005159/0.3819, allocations: 2.909 MB / 364.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.918e-05/0.382, allocations: 11.89 kB / 364.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002145/0.3822, allocations: 95.98 kB / 364.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.3823, allocations: 108.3 kB / 365 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004636/0.387, allocations: 2.433 MB / 367.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01962/0.4066, allocations: 9.117 MB / 376.5 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.4095, allocations: 1.693 MB / 378.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.4112, allocations: 0.9995 MB / 379.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003321/0.4116, allocations: 199.2 kB / 379.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.594e-05/0.4116, allocations: 55.55 kB / 379.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 4.448e-06/0.4116, allocations: 384 / 379.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.02016/0.4318, allocations: 6.531 MB / 386 MB, free: 6.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.4319, allocations: 64.41 kB / 386.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003151/0.4351, allocations: 1.565 MB / 387.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.4352, allocations: 45.7 kB / 387.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008385/0.4361, allocations: 1.112 MB / 388.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/0.4364, allocations: 425.8 kB / 389.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004085/0.4368, allocations: 275.3 kB / 389.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.142e-05/0.4369, allocations: 301.1 kB / 389.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.4381, allocations: 0.7027 MB / 390.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.4396, allocations: 1.147 MB / 391.6 MB, free: 368 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002782/0.4424, allocations: 1.96 MB / 393.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.4424, allocations: 4 kB / 393.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00442/0.4468, allocations: 2.518 MB / 396.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.4469, allocations: 16.22 kB / 396.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.366e-05/0.4469, allocations: 16 kB / 396.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009876/0.4479, allocations: 423.1 kB / 396.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.4491, allocations: 343.5 kB / 396.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.4563, allocations: 7.139 MB / 404 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.4579, allocations: 99.89 kB / 404.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.458, allocations: 67.98 kB / 404.2 MB, free: 3.129 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.001394/0.4594, allocations: 0.7168 MB / 404.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.4597, allocations: 177.8 kB / 405.1 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.4634, allocations: 2.178 MB / 407.3 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.4635, allocations: 12.05 kB / 407.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4635, allocations: 4 kB / 407.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.4635, allocations: 11.86 kB / 407.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007742/0.4713, allocations: 4.793 MB / 412.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.4713, allocations: 4 kB / 412.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009813/0.4723, allocations: 219.7 kB / 412.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.4735, allocations: 459.5 kB / 412.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.607e-05/0.4736, allocations: 35.97 kB / 412.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008146/0.4817, allocations: 8.675 MB / 421.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.4818, allocations: 8 kB / 421.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005258/0.487, allocations: 3.22 MB / 424.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008788/0.4879, allocations: 402.8 kB / 425.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.4882, allocations: 32 kB / 425.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/0.4891, allocations: 83.91 kB / 425.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4894, allocations: 100.7 kB / 425.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.753e-05/0.4895, allocations: 39.98 kB / 425.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001605/0.4911, allocations: 1.07 MB / 426.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4911, allocations: 4 kB / 426.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00174/0.4928, allocations: 484 kB / 426.9 MB, free: 11.54 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.0003949/0.4932, allocations: 203.2 kB / 427.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004952/0.4982, allocations: 2.779 MB / 429.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.4982, allocations: 0 / 429.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.5005, allocations: 1.473 MB / 431.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002224/0.5027, allocations: 480.2 kB / 431.8 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007548/0.5103, allocations: 4.755 MB / 436.6 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00172/0.5121, allocations: 1.867 MB / 438.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001307/0.5134, allocations: 382.9 kB / 438.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003306/0.5137, allocations: 127.4 kB / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5137, allocations: 3.938 kB / 438.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of Templates: time 0.2561/0.7699, allocations: 26.35 MB / 465.3 MB, free: 105.9 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)