Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001128/0.001129, allocations: 98.48 kB / 16.5 MB, free: 6.688 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.00107/0.001071, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.554/1.554, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.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.001257/0.001257, allocations: 43.94 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1184, allocations: 46.63 MB / 326 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01323/0.1317, allocations: 10.19 MB / 336.2 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00738/0.1391, allocations: 3.452 MB / 339.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.1408, allocations: 47.75 kB / 339.7 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.1428, allocations: 0.6759 MB / 340.3 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.145, allocations: 0.7498 MB / 341.1 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000837/0.1459, allocations: 375.6 kB / 341.4 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003076/0.1489, allocations: 3.09 MB / 344.5 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002244/0.1512, allocations: 1.997 MB / 346.5 MB, free: 156 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.1527, allocations: 1.105 MB / 347.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.1545, allocations: 1.514 MB / 349.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.1548, allocations: 208 kB / 349.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007042/0.1555, allocations: 315.8 kB / 349.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007604/0.1563, allocations: 0.8139 MB / 350.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.1576, allocations: 1.376 MB / 351.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003476/0.1611, allocations: 4.221 MB / 356.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1611, allocations: 0 / 356.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1611, allocations: 7.938 kB / 356.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.627e-05/0.1612, allocations: 0 / 356.1 MB, free: 6.57 MB / 302.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.005782/0.167, allocations: 3.053 MB / 359.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.167, allocations: 12.02 kB / 359.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007592/0.1678, allocations: 305.5 kB / 359.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.1703, allocations: 1.52 MB / 361 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.1705, allocations: 172.5 kB / 361.1 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003034/0.1708, allocations: 223.9 kB / 361.4 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004859/0.1756, allocations: 2.913 MB / 364.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.929e-05/0.1757, allocations: 7.906 kB / 364.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00021/0.1759, allocations: 88 kB / 364.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.1761, allocations: 120.3 kB / 364.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004299/0.1804, allocations: 2.43 MB / 366.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.1951, allocations: 9.117 MB / 376 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.1977, allocations: 1.702 MB / 377.7 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2163/0.4141, allocations: 0.9883 MB / 378.7 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003959/0.4145, allocations: 202.6 kB / 378.9 MB, free: 51.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.4146, allocations: 49.83 kB / 379 MB, free: 51.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.387e-06/0.4146, allocations: 0 / 379 MB, free: 51.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01697/0.4316, allocations: 6.518 MB / 385.5 MB, free: 49.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.4316, allocations: 67.88 kB / 385.5 MB, free: 49.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003123/0.4348, allocations: 1.559 MB / 387.1 MB, free: 48.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.4349, allocations: 46.17 kB / 387.2 MB, free: 48.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.4361, allocations: 1.111 MB / 388.3 MB, free: 48.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/0.4367, allocations: 430.8 kB / 388.7 MB, free: 47.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005828/0.4373, allocations: 277 kB / 389 MB, free: 47.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.303e-05/0.4374, allocations: 306 kB / 389.3 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.4389, allocations: 0.7087 MB / 390 MB, free: 47.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.4401, allocations: 1.134 MB / 391.1 MB, free: 46.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.4427, allocations: 1.969 MB / 393.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.4428, allocations: 3.844 kB / 393.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004267/0.4471, allocations: 2.52 MB / 395.6 MB, free: 44.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.4471, allocations: 12.44 kB / 395.6 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.4471, allocations: 11.81 kB / 395.6 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009164/0.4481, allocations: 427.1 kB / 396 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.4492, allocations: 347.8 kB / 396.4 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/0.4558, allocations: 6.544 MB / 402.9 MB, free: 38.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.4579, allocations: 108.4 kB / 403 MB, free: 38.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.4581, allocations: 62.34 kB / 403.1 MB, free: 38.43 MB / 318.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.001552/0.4596, allocations: 0.7121 MB / 403.8 MB, free: 37.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005025/0.4601, allocations: 174.9 kB / 404 MB, free: 37.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004482/0.4646, allocations: 2.198 MB / 406.2 MB, free: 35.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.4647, allocations: 16 kB / 406.2 MB, free: 35.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4647, allocations: 4 kB / 406.2 MB, free: 35.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.4647, allocations: 3.984 kB / 406.2 MB, free: 35.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009966/0.4747, allocations: 4.791 MB / 411 MB, free: 30.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.4748, allocations: 4 kB / 411 MB, free: 30.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.4759, allocations: 215.7 kB / 411.2 MB, free: 30.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.4774, allocations: 464 kB / 411.6 MB, free: 30.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.4775, allocations: 36.92 kB / 411.7 MB, free: 30.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005712/0.4832, allocations: 7.973 MB / 419.6 MB, free: 21.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4832, allocations: 11.88 kB / 419.7 MB, free: 21.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004235/0.4875, allocations: 3.216 MB / 422.9 MB, free: 18.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000724/0.4882, allocations: 394.9 kB / 423.3 MB, free: 17.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/0.4884, allocations: 32 kB / 423.3 MB, free: 17.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008525/0.4893, allocations: 95.83 kB / 423.4 MB, free: 17.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.4895, allocations: 92.75 kB / 423.5 MB, free: 17.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-05/0.4896, allocations: 39.98 kB / 423.5 MB, free: 17.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001268/0.4909, allocations: 1.07 MB / 424.6 MB, free: 16.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4909, allocations: 6.625 kB / 424.6 MB, free: 16.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001533/0.4924, allocations: 486.6 kB / 425.1 MB, free: 16.08 MB / 318.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.0003216/0.4927, allocations: 198.5 kB / 425.3 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003018/0.4958, allocations: 2.277 MB / 427.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4958, allocations: 4 kB / 427.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.4977, allocations: 1.474 MB / 429 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.4997, allocations: 453.8 kB / 429.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006753/0.5065, allocations: 5.724 MB / 435.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.5077, allocations: 1.864 MB / 437 MB, free: 3.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.5089, allocations: 390.8 kB / 437.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/0.5092, allocations: 131.4 kB / 437.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of SimCode: time 6.02e-07/0.5092, allocations: 0 / 437.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of Templates: time 0.04427/0.5535, allocations: 25.31 MB / 462.9 MB, free: 10.05 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)