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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001423/0.001423, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.344/1.344, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001721/0.001721, allocations: 116.8 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.597e-05/1.598e-05, allocations: 4 kB / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.08981, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3729/0.4628, allocations: 123.8 MB / 466.4 MB, free: 4.938 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.4632, allocations: 89.05 kB / 466.5 MB, free: 4.895 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4868/0.9499, allocations: 122 MB / 0.5747 GB, free: 71.24 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.95, allocations: 0 / 0.5747 GB, free: 71.24 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004093/0.9504, allocations: 139.3 kB / 0.5748 GB, free: 71.21 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.01478/0.9652, allocations: 5.079 MB / 0.5798 GB, free: 68.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.9653, allocations: 7.969 kB / 0.5798 GB, free: 68.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006675/0.9719, allocations: 1.007 MB / 0.5808 GB, free: 68.45 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.9854, allocations: 4.56 MB / 0.5852 GB, free: 66.17 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003825/0.9858, allocations: 171.3 kB / 0.5854 GB, free: 66.17 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002387/0.9882, allocations: 324.8 kB / 0.5857 GB, free: 66.16 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01157/0.9998, allocations: 5.062 MB / 0.5906 GB, free: 64 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/1.014, allocations: 6.028 MB / 0.5965 GB, free: 61.29 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/1.014, allocations: 11.75 kB / 0.5965 GB, free: 61.28 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005309/1.015, allocations: 7.219 kB / 0.5965 GB, free: 61.28 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002144/1.015, allocations: 247.4 kB / 0.5968 GB, free: 61.26 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03685/1.052, allocations: 21.4 MB / 0.6177 GB, free: 45.39 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006131/1.058, allocations: 8.128 MB / 0.6256 GB, free: 36.38 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002386/1.061, allocations: 2.015 MB / 0.6276 GB, free: 34.35 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/1.071, allocations: 6.109 MB / 0.6335 GB, free: 28.18 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/1.071, allocations: 60.56 kB / 0.6336 GB, free: 28.11 MB / 395.1 MB Notification: Performance of pre-optimization done (n=228): time 5.109e-06/1.071, allocations: 4 kB / 0.6336 GB, free: 28.11 MB / 395.1 MB Notification: Performance of matching and sorting (n=255): time 0.01599/1.087, allocations: 8.646 MB / 0.6421 GB, free: 19.35 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/1.087, allocations: 77.42 kB / 0.6421 GB, free: 19.26 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/1.09, allocations: 2.185 MB / 0.6443 GB, free: 17.07 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/1.09, allocations: 29.7 kB / 0.6443 GB, free: 17.03 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/1.092, allocations: 2.48 MB / 0.6467 GB, free: 14.52 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005325/1.092, allocations: 0.8391 MB / 0.6475 GB, free: 13.67 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/1.092, allocations: 0 / 0.6475 GB, free: 13.67 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/1.093, allocations: 432.8 kB / 0.6479 GB, free: 13.24 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/1.094, allocations: 1.26 MB / 0.6492 GB, free: 11.98 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/1.096, allocations: 2.209 MB / 0.6513 GB, free: 9.34 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/1.098, allocations: 1.815 MB / 0.6531 GB, free: 7.504 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/1.098, allocations: 11.94 kB / 0.6531 GB, free: 7.492 MB / 395.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.006788/1.105, allocations: 4.535 MB / 0.6575 GB, free: 2.875 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/1.105, allocations: 20 kB / 0.6576 GB, free: 2.855 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.104e-05/1.105, allocations: 28.66 kB / 0.6576 GB, free: 2.828 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/1.107, allocations: 0.732 MB / 0.6583 GB, free: 2.078 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/1.109, allocations: 0.7488 MB / 0.659 GB, free: 1.328 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2773/1.387, allocations: 9.325 MB / 0.6681 GB, free: 59.27 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/1.39, allocations: 134.7 kB / 0.6683 GB, free: 59.27 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004554/1.391, allocations: 141 kB / 0.6684 GB, free: 59.27 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005861/1.391, allocations: 203.7 kB / 0.6686 GB, free: 59.16 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006056/1.392, allocations: 312.9 kB / 0.6689 GB, free: 59.16 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007027/1.399, allocations: 4.108 MB / 0.6729 GB, free: 58.71 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/1.399, allocations: 26.59 kB / 0.6729 GB, free: 58.71 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.399, allocations: 10.31 kB / 0.6729 GB, free: 58.71 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/1.399, allocations: 12.84 kB / 0.673 GB, free: 58.71 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/1.413, allocations: 8.404 MB / 0.6812 GB, free: 57.91 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/1.413, allocations: 9.375 kB / 0.6812 GB, free: 57.91 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/1.415, allocations: 408.8 kB / 0.6816 GB, free: 57.91 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/1.417, allocations: 0.9427 MB / 0.6825 GB, free: 57.86 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002073/1.418, allocations: 31.73 kB / 0.6825 GB, free: 57.86 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/1.433, allocations: 15.32 MB / 0.6975 GB, free: 49.25 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/1.434, allocations: 10.42 kB / 0.6975 GB, free: 49.25 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.445, allocations: 6.244 MB / 0.7036 GB, free: 48.02 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/1.447, allocations: 0.675 MB / 0.7042 GB, free: 47.62 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006375/1.448, allocations: 19.05 kB / 0.7043 GB, free: 47.62 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.45, allocations: 115.8 kB / 0.7044 GB, free: 47.62 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005473/1.45, allocations: 196.5 kB / 0.7046 GB, free: 47.59 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000181/1.45, allocations: 72.52 kB / 0.7046 GB, free: 47.57 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002744/1.453, allocations: 1.609 MB / 0.7062 GB, free: 46.9 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.453, allocations: 1.031 kB / 0.7062 GB, free: 46.9 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004364/1.457, allocations: 0.9488 MB / 0.7071 GB, free: 46.88 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009373/1.458, allocations: 472.5 kB / 0.7076 GB, free: 46.77 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005898/1.464, allocations: 3.949 MB / 0.7114 GB, free: 44.99 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.464, allocations: 0 / 0.7114 GB, free: 44.99 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003825/1.468, allocations: 2.659 MB / 0.714 GB, free: 43.56 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/1.472, allocations: 0.6743 MB / 0.7147 GB, free: 43.41 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/1.486, allocations: 8.051 MB / 0.7226 GB, free: 40.04 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/1.489, allocations: 3.511 MB / 0.726 GB, free: 38.75 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.002862/1.492, allocations: 0.7626 MB / 0.7267 GB, free: 38.66 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005655/1.493, allocations: 222.4 kB / 0.7269 GB, free: 38.64 MB / 395.1 MB Notification: Performance of SimCode: time 8.82e-07/1.493, allocations: 0 / 0.7269 GB, free: 38.64 MB / 395.1 MB Notification: Performance of Templates: time 0.07348/1.566, allocations: 42.77 MB / 0.7687 GB, free: 23.66 MB / 395.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)