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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001105, allocations: 102.2 kB / 17.06 MB, free: 6.016 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.001149/0.00115, allocations: 195 kB / 18 MB, free: 5.094 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.332/1.332, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001251/0.001251, allocations: 47.94 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09753, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.217/0.3146, allocations: 25.32 MB / 399.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.3329, allocations: 7.076 MB / 406.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00802/0.341, allocations: 151.2 kB / 407.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007528/0.3486, allocations: 1.711 MB / 408.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.36, allocations: 2.267 MB / 411 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006503/0.3666, allocations: 1.517 MB / 412.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.3814, allocations: 8.54 MB / 421.1 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01334/0.3948, allocations: 7.278 MB / 428.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01015/0.405, allocations: 3.996 MB / 432.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.4154, allocations: 4.624 MB / 437 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00428/0.4197, allocations: 1.129 MB / 438.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005518/0.4252, allocations: 1.343 MB / 439.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003764/0.429, allocations: 2.528 MB / 442 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008954/0.438, allocations: 4.719 MB / 446.7 MB, free: 7.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02017/0.4582, allocations: 14.71 MB / 461.4 MB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.4583, allocations: 0 / 461.4 MB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4583, allocations: 3.938 kB / 461.4 MB, free: 8.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005229/0.4588, allocations: 0 / 461.4 MB, free: 8.449 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03152/0.4904, allocations: 9.224 MB / 470.7 MB, free: 15.13 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.4904, allocations: 11.89 kB / 470.7 MB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01117/0.5016, allocations: 1.736 MB / 472.4 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01125/0.5129, allocations: 4.742 MB / 477.1 MB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005261/0.5135, allocations: 0.5342 MB / 477.7 MB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002801/0.5163, allocations: 0.7072 MB / 478.4 MB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02689/0.5432, allocations: 9.781 MB / 488.2 MB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002168/0.5434, allocations: 7.906 kB / 488.2 MB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001327/0.5448, allocations: 300 kB / 488.5 MB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003793/0.5452, allocations: 354.6 kB / 488.8 MB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.5652, allocations: 8.291 MB / 497.1 MB, free: 4.504 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05878/0.6241, allocations: 30.08 MB / 0.5148 GB, free: 5.707 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01636/0.6405, allocations: 16.09 MB / 0.5305 GB, free: 3.859 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00538/0.6459, allocations: 3.019 MB / 0.5335 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01548/0.6614, allocations: 8.047 MB / 0.5413 GB, free: 8.621 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.732e-05/0.6615, allocations: 60.78 kB / 0.5414 GB, free: 8.551 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 4.278e-06/0.6615, allocations: 0 / 0.5414 GB, free: 8.551 MB / 478.1 MB Notification: Performance of matching and sorting (n=289): time 0.2639/0.9254, allocations: 11.56 MB / 0.5527 GB, free: 146.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.9255, allocations: 83.97 kB / 0.5528 GB, free: 146.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007102/0.9326, allocations: 3.645 MB / 0.5563 GB, free: 145.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005401/0.9332, allocations: 77.81 kB / 0.5564 GB, free: 145.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002532/0.9357, allocations: 3.184 MB / 0.5595 GB, free: 142.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/0.9369, allocations: 0.9884 MB / 0.5605 GB, free: 141.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.938, allocations: 0.6536 MB / 0.5611 GB, free: 141.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.9381, allocations: 305.3 kB / 0.5614 GB, free: 141.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002569/0.9407, allocations: 1.478 MB / 0.5629 GB, free: 140.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003355/0.944, allocations: 2.619 MB / 0.5654 GB, free: 138.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006182/0.9502, allocations: 4.388 MB / 0.5697 GB, free: 135.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.794e-05/0.9503, allocations: 11.06 kB / 0.5697 GB, free: 135.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.00981/0.9601, allocations: 5.029 MB / 0.5746 GB, free: 133.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.113e-05/0.9602, allocations: 21.75 kB / 0.5746 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.036e-05/0.9603, allocations: 35.06 kB / 0.5747 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.9613, allocations: 393.3 kB / 0.5751 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003383/0.9647, allocations: 0.8705 MB / 0.5759 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005497/0.9702, allocations: 7.965 MB / 0.5837 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003988/0.9742, allocations: 172.5 kB / 0.5838 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005768/0.9748, allocations: 165.8 kB / 0.584 GB, free: 126.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005143/0.98, allocations: 2.146 MB / 0.5861 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/0.9811, allocations: 397.6 kB / 0.5865 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006711/0.9878, allocations: 4.45 MB / 0.5908 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.9879, allocations: 30.36 kB / 0.5909 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/0.9879, allocations: 15.06 kB / 0.5909 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.259e-05/0.9879, allocations: 15 kB / 0.5909 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/1.005, allocations: 10.47 MB / 0.6011 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.005, allocations: 4 kB / 0.6011 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.007, allocations: 443.5 kB / 0.6015 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00196/1.009, allocations: 0.8796 MB / 0.6024 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/1.009, allocations: 75.97 kB / 0.6025 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/1.022, allocations: 17.62 MB / 0.6197 GB, free: 98.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.022, allocations: 15.62 kB / 0.6197 GB, free: 98.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008688/1.031, allocations: 6.43 MB / 0.626 GB, free: 91.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/1.033, allocations: 0.7929 MB / 0.6267 GB, free: 90.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009966/1.034, allocations: 71.98 kB / 0.6268 GB, free: 90.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002104/1.036, allocations: 136.1 kB / 0.6269 GB, free: 90.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005134/1.037, allocations: 221.7 kB / 0.6272 GB, free: 90.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001615/1.037, allocations: 91.97 kB / 0.6272 GB, free: 90.06 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003265/1.04, allocations: 2.465 MB / 0.6297 GB, free: 87.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.04, allocations: 0 / 0.6297 GB, free: 87.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004543/1.045, allocations: 1.214 MB / 0.6308 GB, free: 86.41 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,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.0005756/1.046, allocations: 216.8 kB / 0.631 GB, free: 86.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006467/1.052, allocations: 4.378 MB / 0.6353 GB, free: 81.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/1.052, allocations: 4 kB / 0.6353 GB, free: 81.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004029/1.056, allocations: 2.976 MB / 0.6382 GB, free: 78.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005271/1.061, allocations: 1.116 MB / 0.6393 GB, free: 77.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02192/1.083, allocations: 12.46 MB / 0.6515 GB, free: 64.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004018/1.087, allocations: 4.351 MB / 0.6557 GB, free: 60.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002983/1.09, allocations: 0.8942 MB / 0.6566 GB, free: 59.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007794/1.091, allocations: 279.3 kB / 0.6569 GB, free: 59.42 MB / 478.1 MB Notification: Performance of SimCode: time 2.334e-06/1.091, allocations: 0 / 0.6569 GB, free: 59.42 MB / 478.1 MB Notification: Performance of Templates: time 0.08667/1.178, allocations: 58.34 MB / 0.7139 GB, free: 1.082 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)