Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 106.5 kB / 16.62 MB, free: 6.332 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.001331/0.001331, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.282/1.282, allocations: 205.1 MB / 223.4 MB, free: 12.42 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.001606/0.001606, allocations: 47.92 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09506, allocations: 46.64 MB / 326.1 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02185/0.117, allocations: 21.39 MB / 347.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.1295, allocations: 6.325 MB / 353.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004645/0.1342, allocations: 119.4 kB / 354 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004738/0.139, allocations: 1.27 MB / 355.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007155/0.1462, allocations: 1.834 MB / 357.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003406/0.1496, allocations: 1.189 MB / 358.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008659/0.1583, allocations: 6.614 MB / 364.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008032/0.1663, allocations: 5.511 MB / 370.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004315/0.1706, allocations: 2.908 MB / 373.3 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005397/0.1761, allocations: 3.581 MB / 376.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001691/0.1778, allocations: 0.8125 MB / 377.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1707/0.3485, allocations: 1.102 MB / 378.8 MB, free: 21.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003162/0.3517, allocations: 2.015 MB / 380.8 MB, free: 21.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008345/0.3601, allocations: 3.536 MB / 384.4 MB, free: 21.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01368/0.3738, allocations: 10.67 MB / 395 MB, free: 19.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3739, allocations: 0 / 395 MB, free: 19.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3739, allocations: 4.594 kB / 395 MB, free: 19.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004091/0.3743, allocations: 0 / 395 MB, free: 19.92 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02507/0.3994, allocations: 6.911 MB / 401.9 MB, free: 16.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3994, allocations: 9.188 kB / 401.9 MB, free: 16.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00724/0.4067, allocations: 1.067 MB / 403 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007949/0.4147, allocations: 3.453 MB / 406.5 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/0.415, allocations: 413.2 kB / 406.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/0.4164, allocations: 0.5233 MB / 407.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/0.4314, allocations: 7.049 MB / 414.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001875/0.4317, allocations: 17.73 kB / 414.5 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.4328, allocations: 212.2 kB / 414.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002437/0.433, allocations: 265 kB / 414.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.4456, allocations: 5.931 MB / 420.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04633/0.492, allocations: 22.44 MB / 443.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009044/0.5011, allocations: 8.277 MB / 451.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003791/0.5049, allocations: 2.188 MB / 453.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01214/0.517, allocations: 6.189 MB / 460 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.303e-05/0.5171, allocations: 60.03 kB / 460 MB, free: 13.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 4.268e-06/0.5171, allocations: 0 / 460 MB, free: 13.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02324/0.5404, allocations: 11.14 MB / 471.2 MB, free: 1.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.5405, allocations: 77.41 kB / 471.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004991/0.5455, allocations: 3.152 MB / 474.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000417/0.5459, allocations: 65.7 kB / 474.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.5477, allocations: 2.503 MB / 477 MB, free: 11.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008701/0.5486, allocations: 0.8283 MB / 477.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008523/0.5494, allocations: 0.5575 MB / 478.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.18e-05/0.5495, allocations: 301.1 kB / 478.6 MB, free: 10.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.5516, allocations: 1.334 MB / 480 MB, free: 8.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002775/0.5544, allocations: 2.343 MB / 482.3 MB, free: 6.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005175/0.5596, allocations: 3.923 MB / 486.2 MB, free: 1.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/0.5596, allocations: 8 kB / 486.2 MB, free: 1.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007852/0.5675, allocations: 4.703 MB / 490.9 MB, free: 13.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.5676, allocations: 20 kB / 491 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-05/0.5676, allocations: 32 kB / 491 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.5688, allocations: 0.526 MB / 491.5 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.5716, allocations: 0.7486 MB / 492.3 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009101/0.5807, allocations: 10.29 MB / 0.4908 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00405/0.5848, allocations: 183.7 kB / 0.491 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004476/0.5852, allocations: 140 kB / 0.4911 GB, free: 0.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003784/0.589, allocations: 1.579 MB / 0.4926 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009837/0.59, allocations: 343.8 kB / 0.493 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/0.5975, allocations: 4.053 MB / 0.4969 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.5975, allocations: 23.94 kB / 0.4969 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.5975, allocations: 8 kB / 0.4969 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.5975, allocations: 15.95 kB / 0.497 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/0.6135, allocations: 8.972 MB / 0.5057 GB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.6135, allocations: 8 kB / 0.5057 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001782/0.6153, allocations: 414 kB / 0.5061 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001905/0.6172, allocations: 0.7392 MB / 0.5068 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.6174, allocations: 67.97 kB / 0.5069 GB, free: 316 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/0.6334, allocations: 16.74 MB / 0.5233 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.6335, allocations: 4 kB / 0.5233 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/0.6435, allocations: 5.856 MB / 0.529 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002136/0.6457, allocations: 0.692 MB / 0.5297 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006939/0.6464, allocations: 63.92 kB / 0.5297 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/0.6481, allocations: 139.9 kB / 0.5299 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004862/0.6486, allocations: 180.8 kB / 0.53 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/0.6488, allocations: 67.98 kB / 0.5301 GB, free: 7.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003713/0.6525, allocations: 2.13 MB / 0.5322 GB, free: 5.273 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6525, allocations: 3 kB / 0.5322 GB, free: 5.273 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004414/0.6569, allocations: 0.9845 MB / 0.5331 GB, free: 4.289 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006844/0.6576, allocations: 251.8 kB / 0.5334 GB, free: 4.055 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1768/0.8344, allocations: 5.717 MB / 0.539 GB, free: 160 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.8345, allocations: 4.938 kB / 0.539 GB, free: 160 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004986/0.8395, allocations: 2.753 MB / 0.5416 GB, free: 159 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/0.845, allocations: 0.9556 MB / 0.5426 GB, free: 158.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/0.865, allocations: 12.3 MB / 0.5546 GB, free: 153.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003271/0.8683, allocations: 3.418 MB / 0.5579 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003465/0.8718, allocations: 0.8022 MB / 0.5587 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006392/0.8724, allocations: 242.3 kB / 0.5589 GB, free: 152.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.944e-06/0.8724, allocations: 0 / 0.5589 GB, free: 152.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07674/0.9492, allocations: 51.27 MB / 0.609 GB, free: 106.4 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)