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.01174/0.01174, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.001853/0.001853, allocations: 197.2 kB / 16.67 MB, free: 6.379 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.718/1.718, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001306/0.001306, allocations: 53.95 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1163, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01362/0.1299, allocations: 10.26 MB / 383.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008246/0.1383, allocations: 3.486 MB / 386.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.1401, allocations: 47.81 kB / 387 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.1423, allocations: 0.7685 MB / 387.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.1453, allocations: 0.8307 MB / 388.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.1464, allocations: 423.4 kB / 389 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003617/0.1501, allocations: 2.755 MB / 391.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002905/0.153, allocations: 2.366 MB / 394.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002198/0.1552, allocations: 1.265 MB / 395.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003026/0.1582, allocations: 1.572 MB / 397 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006645/0.1589, allocations: 336 kB / 397.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1601, allocations: 443.8 kB / 397.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009962/0.1611, allocations: 0.9389 MB / 398.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003018/0.1641, allocations: 1.509 MB / 400.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007031/0.1712, allocations: 4.381 MB / 404.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.1713, allocations: 0 / 404.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1713, allocations: 0 / 404.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002083/0.1715, allocations: 0 / 404.5 MB, free: 1.77 MB / 334.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.008496/0.18, allocations: 3.061 MB / 407.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.1801, allocations: 11.89 kB / 407.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008597/0.181, allocations: 305.5 kB / 407.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003051/0.184, allocations: 1.536 MB / 409.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.1842, allocations: 164.4 kB / 409.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003847/0.1846, allocations: 223.9 kB / 409.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005335/0.19, allocations: 2.917 MB / 412.7 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.977e-05/0.19, allocations: 0 / 412.7 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.1903, allocations: 88 kB / 412.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.1904, allocations: 116.3 kB / 412.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/0.195, allocations: 2.43 MB / 415.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.2111, allocations: 9.016 MB / 424.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.2137, allocations: 1.709 MB / 426.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.2155, allocations: 0.9688 MB / 427.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000319/0.2159, allocations: 207.2 kB / 427.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.2159, allocations: 47.5 kB / 427.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.837e-06/0.216, allocations: 0 / 427.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.0154/0.2314, allocations: 6.527 MB / 433.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.2315, allocations: 72.34 kB / 433.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002603/0.2341, allocations: 1.573 MB / 435.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00016/0.2342, allocations: 45.7 kB / 435.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009383/0.2352, allocations: 1.104 MB / 436.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004884/0.2357, allocations: 429.8 kB / 437.1 MB, free: 360 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000496/0.2362, allocations: 271.4 kB / 437.3 MB, free: 80 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2363, allocations: 301.1 kB / 437.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.2377, allocations: 0.7066 MB / 438.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.2393, allocations: 1.143 MB / 439.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002761/0.2421, allocations: 1.964 MB / 441.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.2421, allocations: 7.938 kB / 441.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004785/0.2469, allocations: 2.518 MB / 444 MB, free: 9.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.247, allocations: 12 kB / 444 MB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-05/0.247, allocations: 16.28 kB / 444 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009995/0.248, allocations: 427 kB / 444.4 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.2493, allocations: 351.4 kB / 444.7 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007667/0.257, allocations: 7.119 MB / 451.9 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.2589, allocations: 115.8 kB / 452 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002672/0.2591, allocations: 60 kB / 452 MB, free: 0.5195 MB / 382.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.2631/0.5223, allocations: 0.7159 MB / 452.7 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000832/0.5231, allocations: 169.6 kB / 452.9 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005508/0.5286, allocations: 2.184 MB / 455.1 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.5287, allocations: 12.53 kB / 455.1 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.5287, allocations: 3.656 kB / 455.1 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.5287, allocations: 10.38 kB / 455.1 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.5396, allocations: 4.773 MB / 459.9 MB, free: 66.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.5398, allocations: 4.438 kB / 459.9 MB, free: 66.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.541, allocations: 219.9 kB / 460.1 MB, free: 66.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001695/0.5427, allocations: 455.1 kB / 460.6 MB, free: 66.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.5429, allocations: 35.91 kB / 460.6 MB, free: 66.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008232/0.5511, allocations: 8.673 MB / 469.3 MB, free: 59.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/0.5512, allocations: 11.02 kB / 469.3 MB, free: 59.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006051/0.5572, allocations: 3.214 MB / 472.5 MB, free: 58.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/0.5591, allocations: 399.9 kB / 472.9 MB, free: 58.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000398/0.5596, allocations: 34 kB / 472.9 MB, free: 58.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.5606, allocations: 91.08 kB / 473 MB, free: 58.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/0.561, allocations: 102 kB / 473.1 MB, free: 58.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.13e-05/0.5611, allocations: 41.52 kB / 473.1 MB, free: 58.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001666/0.5628, allocations: 1.069 MB / 474.2 MB, free: 57.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5628, allocations: 0 / 474.2 MB, free: 57.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00199/0.5648, allocations: 483.8 kB / 474.7 MB, free: 57.81 MB / 382.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.0004379/0.5652, allocations: 195.7 kB / 474.9 MB, free: 57.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.5687, allocations: 2.295 MB / 477.2 MB, free: 56.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.5688, allocations: 3.875 kB / 477.2 MB, free: 56.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.5709, allocations: 1.473 MB / 478.6 MB, free: 55.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.5734, allocations: 484.8 kB / 479.1 MB, free: 55.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007993/0.5814, allocations: 4.681 MB / 483.8 MB, free: 51.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.5829, allocations: 1.87 MB / 485.7 MB, free: 49.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001294/0.5842, allocations: 394.9 kB / 486.1 MB, free: 49.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.5846, allocations: 130.2 kB / 486.2 MB, free: 49.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5846, allocations: 0 / 486.2 MB, free: 49.47 MB / 382.1 MB Notification: Performance of Templates: time 0.04506/0.6297, allocations: 27.29 MB / 0.5014 GB, free: 22.16 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)