Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001075/0.001075, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001185/0.001185, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.335/1.335, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001308/0.001308, allocations: 47.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2378, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02301/0.2609, allocations: 21.39 MB / 346.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01553/0.2765, allocations: 6.329 MB / 352.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005492/0.2821, allocations: 115.5 kB / 352.7 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005879/0.288, allocations: 1.274 MB / 354 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009603/0.2976, allocations: 1.838 MB / 355.8 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00471/0.3024, allocations: 1.185 MB / 357 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01115/0.3135, allocations: 6.624 MB / 363.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01012/0.3237, allocations: 5.507 MB / 369.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005583/0.3293, allocations: 2.908 MB / 372 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005986/0.3353, allocations: 3.577 MB / 375.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00289/0.3383, allocations: 0.8163 MB / 376.4 MB, free: 292 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003593/0.3419, allocations: 1.109 MB / 377.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003209/0.3451, allocations: 2.018 MB / 379.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007763/0.3529, allocations: 3.528 MB / 383.1 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.3661, allocations: 10.67 MB / 393.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3661, allocations: 0 / 393.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3661, allocations: 0 / 393.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003379/0.3665, allocations: 4 kB / 393.7 MB, free: 14.9 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01944/0.3859, allocations: 6.907 MB / 400.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.386, allocations: 8.031 kB / 400.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004967/0.391, allocations: 1.071 MB / 401.7 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006315/0.3973, allocations: 3.438 MB / 405.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.3977, allocations: 423 kB / 405.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009725/0.3986, allocations: 0.5233 MB / 406.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.4134, allocations: 7.048 MB / 413.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.4136, allocations: 15.84 kB / 413.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005474/0.4142, allocations: 220 kB / 413.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002572/0.4144, allocations: 262.6 kB / 413.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.4265, allocations: 5.937 MB / 419.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03797/0.4645, allocations: 22.43 MB / 442 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007937/0.4725, allocations: 8.284 MB / 450.3 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003769/0.4763, allocations: 2.195 MB / 452.5 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1793/0.6556, allocations: 6.17 MB / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.6557, allocations: 63.44 kB / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.889e-06/0.6557, allocations: 0 / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02126/0.677, allocations: 11.14 MB / 469.9 MB, free: 100.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.6771, allocations: 80.56 kB / 469.9 MB, free: 100.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/0.6813, allocations: 3.154 MB / 473.1 MB, free: 99.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.6815, allocations: 65.58 kB / 473.2 MB, free: 99.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.6828, allocations: 2.495 MB / 475.6 MB, free: 97.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/0.6833, allocations: 0.8317 MB / 476.5 MB, free: 96.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007855/0.6841, allocations: 0.5615 MB / 477 MB, free: 96.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.6842, allocations: 305.1 kB / 477.3 MB, free: 96.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001708/0.6859, allocations: 1.33 MB / 478.7 MB, free: 95.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.6881, allocations: 2.341 MB / 481 MB, free: 93.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.692, allocations: 3.917 MB / 484.9 MB, free: 88.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.692, allocations: 12 kB / 484.9 MB, free: 88.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006138/0.6982, allocations: 4.704 MB / 489.6 MB, free: 83.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.6982, allocations: 20.62 kB / 489.7 MB, free: 83.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/0.6983, allocations: 32 kB / 489.7 MB, free: 83.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.6993, allocations: 0.5328 MB / 490.2 MB, free: 83.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/0.7016, allocations: 0.7449 MB / 491 MB, free: 82.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006247/0.7078, allocations: 10.29 MB / 0.4895 GB, free: 71.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/0.7106, allocations: 183.8 kB / 0.4897 GB, free: 71.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.7108, allocations: 142.3 kB / 0.4898 GB, free: 71.34 MB / 382.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.002449/0.7133, allocations: 1.571 MB / 0.4914 GB, free: 69.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006604/0.714, allocations: 347.6 kB / 0.4917 GB, free: 69.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005407/0.7194, allocations: 4.05 MB / 0.4956 GB, free: 65.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.7194, allocations: 28 kB / 0.4957 GB, free: 65.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.7194, allocations: 8 kB / 0.4957 GB, free: 65.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.7195, allocations: 11.95 kB / 0.4957 GB, free: 65.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.7313, allocations: 8.987 MB / 0.5045 GB, free: 56.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.7313, allocations: 4 kB / 0.5045 GB, free: 56.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.7329, allocations: 411.4 kB / 0.5049 GB, free: 55.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001654/0.7346, allocations: 0.7368 MB / 0.5056 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/0.7347, allocations: 71.97 kB / 0.5057 GB, free: 54.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/0.7462, allocations: 16.74 MB / 0.522 GB, free: 37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.7462, allocations: 7.938 kB / 0.522 GB, free: 37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00809/0.7543, allocations: 5.835 MB / 0.5277 GB, free: 31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/0.7561, allocations: 0.6881 MB / 0.5284 GB, free: 30.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004498/0.7566, allocations: 59.98 kB / 0.5284 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.7581, allocations: 139.9 kB / 0.5286 GB, free: 30.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004464/0.7586, allocations: 185.5 kB / 0.5288 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.7587, allocations: 71.97 kB / 0.5288 GB, free: 29.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002735/0.7615, allocations: 2.134 MB / 0.5309 GB, free: 27.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7615, allocations: 0 / 0.5309 GB, free: 27.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003564/0.765, allocations: 0.9905 MB / 0.5319 GB, free: 26.73 MB / 382.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.000547/0.7656, allocations: 252.2 kB / 0.5321 GB, free: 26.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0098/0.7754, allocations: 5.722 MB / 0.5377 GB, free: 20.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.7754, allocations: 3.938 kB / 0.5377 GB, free: 20.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00334/0.7788, allocations: 2.744 MB / 0.5404 GB, free: 17.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/0.7829, allocations: 0.9555 MB / 0.5413 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01421/0.7971, allocations: 12.3 MB / 0.5533 GB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.7995, allocations: 3.411 MB / 0.5567 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002722/0.8023, allocations: 0.8073 MB / 0.5574 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005672/0.8029, allocations: 243.4 kB / 0.5577 GB, free: 32 kB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8029, allocations: 0 / 0.5577 GB, free: 32 kB / 382.1 MB Notification: Performance of Templates: time 0.284/1.087, allocations: 51.27 MB / 0.6077 GB, free: 139.9 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)