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.005777/0.005777, allocations: 102 kB / 15.73 MB, free: 6.051 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.001179/0.001179, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.317/1.317, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001124/0.001124, allocations: 55.92 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.0864, allocations: 46.61 MB / 373.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1826/0.269, allocations: 21.67 MB / 394.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.2824, allocations: 6.436 MB / 401.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004389/0.2869, allocations: 121.5 kB / 401.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004858/0.2918, allocations: 1.539 MB / 402.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007762/0.2996, allocations: 2.135 MB / 405.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004012/0.3036, allocations: 1.307 MB / 406.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009799/0.3134, allocations: 6.531 MB / 412.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008605/0.322, allocations: 5.51 MB / 418.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005648/0.3277, allocations: 2.998 MB / 421.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006125/0.3339, allocations: 3.569 MB / 425 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00218/0.3361, allocations: 0.8164 MB / 425.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.3395, allocations: 1.105 MB / 426.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00251/0.3421, allocations: 2.018 MB / 428.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005648/0.3477, allocations: 3.539 MB / 432.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.3596, allocations: 10.78 MB / 443.3 MB, free: 9.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.3596, allocations: 8 kB / 443.3 MB, free: 9.328 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3596, allocations: 0 / 443.3 MB, free: 9.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002872/0.3599, allocations: 0 / 443.3 MB, free: 9.328 MB / 366.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.019/0.3789, allocations: 6.918 MB / 450.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.379, allocations: 8.031 kB / 450.2 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005737/0.3847, allocations: 1.063 MB / 451.3 MB, free: 1.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007383/0.3921, allocations: 3.52 MB / 454.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003849/0.3925, allocations: 411.3 kB / 455.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001538/0.3941, allocations: 0.5271 MB / 455.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.4095, allocations: 7.052 MB / 462.8 MB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001905/0.4097, allocations: 7.906 kB / 462.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.4108, allocations: 223.9 kB / 463 MB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002445/0.411, allocations: 262.6 kB / 463.2 MB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.4235, allocations: 5.937 MB / 469.2 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04159/0.4652, allocations: 22.16 MB / 491.3 MB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008346/0.4736, allocations: 8.277 MB / 499.6 MB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/0.477, allocations: 2.167 MB / 0.49 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.4878, allocations: 6.164 MB / 0.496 GB, free: 6.793 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.908e-05/0.4878, allocations: 64.56 kB / 0.4961 GB, free: 6.719 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 6.031e-06/0.4879, allocations: 0 / 0.4961 GB, free: 6.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02319/0.511, allocations: 11.15 MB / 0.507 GB, free: 11.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.5112, allocations: 81.39 kB / 0.5071 GB, free: 11.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006145/0.5173, allocations: 3.152 MB / 0.5101 GB, free: 8.066 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.5176, allocations: 69.7 kB / 0.5102 GB, free: 7.992 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.5195, allocations: 2.494 MB / 0.5126 GB, free: 5.469 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007142/0.5202, allocations: 0.8241 MB / 0.5135 GB, free: 4.633 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009469/0.5212, allocations: 0.5575 MB / 0.514 GB, free: 4.066 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.5213, allocations: 305.1 kB / 0.5143 GB, free: 3.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.5236, allocations: 1.337 MB / 0.5156 GB, free: 2.426 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002941/0.5266, allocations: 2.343 MB / 0.5179 GB, free: 15.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005655/0.5322, allocations: 3.924 MB / 0.5217 GB, free: 11.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.884e-05/0.5323, allocations: 8 kB / 0.5217 GB, free: 11.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008015/0.5403, allocations: 4.702 MB / 0.5263 GB, free: 6.418 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.5404, allocations: 23.28 kB / 0.5263 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.716e-05/0.5404, allocations: 36.06 kB / 0.5264 GB, free: 6.363 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.5417, allocations: 0.514 MB / 0.5269 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002949/0.5446, allocations: 0.7487 MB / 0.5276 GB, free: 5.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00944/0.5541, allocations: 10.3 MB / 0.5377 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003286/0.5574, allocations: 187.8 kB / 0.5378 GB, free: 9.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005183/0.5579, allocations: 140 kB / 0.538 GB, free: 9.762 MB / 478.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.003368/0.5613, allocations: 1.57 MB / 0.5395 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/0.5623, allocations: 347.8 kB / 0.5398 GB, free: 7.836 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007592/0.5699, allocations: 4.046 MB / 0.5438 GB, free: 3.691 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.57, allocations: 23.94 kB / 0.5438 GB, free: 3.668 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.943e-05/0.57, allocations: 8 kB / 0.5438 GB, free: 3.66 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.557e-05/0.5701, allocations: 15.95 kB / 0.5438 GB, free: 3.645 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.229/0.7991, allocations: 8.962 MB / 0.5526 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.7991, allocations: 9.188 kB / 0.5526 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/0.801, allocations: 405.7 kB / 0.553 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/0.803, allocations: 0.7315 MB / 0.5537 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/0.8032, allocations: 66.3 kB / 0.5538 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/0.8166, allocations: 16.73 MB / 0.5701 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.8166, allocations: 7.531 kB / 0.5701 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.8271, allocations: 5.84 MB / 0.5758 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/0.83, allocations: 0.6938 MB / 0.5765 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/0.8313, allocations: 57.17 kB / 0.5765 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002291/0.8336, allocations: 144 kB / 0.5767 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005789/0.8342, allocations: 183.7 kB / 0.5768 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.8344, allocations: 73.88 kB / 0.5769 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004134/0.8385, allocations: 2.124 MB / 0.579 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8386, allocations: 0 / 0.579 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004169/0.8427, allocations: 0.9937 MB / 0.58 GB, free: 127.1 MB / 478.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.0006006/0.8434, allocations: 246.4 kB / 0.5802 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005985/0.8494, allocations: 4.154 MB / 0.5843 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.8494, allocations: 7.297 kB / 0.5843 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003499/0.8529, allocations: 2.74 MB / 0.5869 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004174/0.8571, allocations: 0.9555 MB / 0.5879 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/0.8723, allocations: 9.924 MB / 0.5976 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/0.8749, allocations: 3.419 MB / 0.6009 GB, free: 114.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002399/0.8773, allocations: 0.8026 MB / 0.6017 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006233/0.8779, allocations: 242.8 kB / 0.6019 GB, free: 113.5 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/0.8779, allocations: 0 / 0.6019 GB, free: 113.5 MB / 478.1 MB Notification: Performance of Templates: time 0.07036/0.9483, allocations: 49.12 MB / 0.6499 GB, free: 64.82 MB / 478.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)