Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.00132/0.00132, allocations: 107.3 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.001553/0.001553, allocations: 187.4 kB / 16.25 MB, free: 6.145 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.331/1.331, allocations: 205.1 MB / 222.1 MB, free: 4.566 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.001351/0.001351, allocations: 59.92 kB / 278.2 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2327, allocations: 46.63 MB / 324.9 MB, free: 2.164 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02605/0.2588, allocations: 24.94 MB / 349.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.2754, allocations: 6.962 MB / 356.8 MB, free: 4.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00672/0.2822, allocations: 143.4 kB / 356.9 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00657/0.2889, allocations: 1.477 MB / 358.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009289/0.2982, allocations: 2.016 MB / 360.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004844/0.3031, allocations: 1.396 MB / 361.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01396/0.317, allocations: 8.73 MB / 370.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01264/0.3297, allocations: 7.278 MB / 377.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007363/0.3371, allocations: 3.804 MB / 381.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007735/0.3449, allocations: 4.569 MB / 386.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003639/0.3486, allocations: 1.125 MB / 387.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004585/0.3532, allocations: 1.347 MB / 388.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004191/0.3574, allocations: 2.509 MB / 391.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009281/0.3667, allocations: 4.707 MB / 395.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01738/0.3841, allocations: 14.56 MB / 410.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3842, allocations: 0 / 410.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3842, allocations: 0 / 410.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004704/0.3847, allocations: 0 / 410.4 MB, free: 14.25 MB / 350.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.02759/0.4123, allocations: 9.205 MB / 419.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.4124, allocations: 15.89 kB / 419.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/0.4225, allocations: 1.744 MB / 421.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009652/0.4322, allocations: 4.602 MB / 426 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005124/0.4328, allocations: 0.5421 MB / 426.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002447/0.4352, allocations: 0.7068 MB / 427.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/0.459, allocations: 9.777 MB / 437 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002162/0.4593, allocations: 11.84 kB / 437 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/0.4606, allocations: 296 kB / 437.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003243/0.4609, allocations: 358.6 kB / 437.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/0.4788, allocations: 8.291 MB / 446 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3846/0.8634, allocations: 30.46 MB / 476.4 MB, free: 87.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01247/0.8759, allocations: 16.09 MB / 492.5 MB, free: 72.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004669/0.8806, allocations: 3.042 MB / 495.5 MB, free: 71.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.8938, allocations: 8.082 MB / 0.4918 GB, free: 65.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.8939, allocations: 67.7 kB / 0.4919 GB, free: 65.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 4.779e-06/0.8939, allocations: 7.625 kB / 0.4919 GB, free: 65.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02091/0.9148, allocations: 11.58 MB / 0.5032 GB, free: 53.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.9149, allocations: 81.69 kB / 0.5033 GB, free: 53.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00481/0.9197, allocations: 3.645 MB / 0.5068 GB, free: 50.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005409/0.9203, allocations: 77.64 kB / 0.5069 GB, free: 49.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.9217, allocations: 3.183 MB / 0.51 GB, free: 46.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008708/0.9226, allocations: 0.9966 MB / 0.511 GB, free: 45.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000869/0.9235, allocations: 0.6452 MB / 0.5116 GB, free: 45.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.305e-05/0.9235, allocations: 305.1 kB / 0.5119 GB, free: 44.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.9255, allocations: 1.475 MB / 0.5134 GB, free: 43.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002545/0.9281, allocations: 2.628 MB / 0.5159 GB, free: 40.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005917/0.934, allocations: 4.392 MB / 0.5202 GB, free: 35.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.207e-05/0.9341, allocations: 12 kB / 0.5202 GB, free: 35.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.008212/0.9423, allocations: 5.017 MB / 0.5251 GB, free: 30.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.9424, allocations: 20 kB / 0.5251 GB, free: 30.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/0.9424, allocations: 36.75 kB / 0.5252 GB, free: 30.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.9433, allocations: 412.2 kB / 0.5256 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/0.9462, allocations: 0.8697 MB / 0.5264 GB, free: 28.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005049/0.9513, allocations: 7.962 MB / 0.5342 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00331/0.9546, allocations: 167.8 kB / 0.5344 GB, free: 20.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003004/0.955, allocations: 164 kB / 0.5345 GB, free: 20.01 MB / 382.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.003689/0.9586, allocations: 2.14 MB / 0.5366 GB, free: 17.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008214/0.9595, allocations: 403.1 kB / 0.537 GB, free: 17.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/0.966, allocations: 4.458 MB / 0.5413 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.966, allocations: 28 kB / 0.5414 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.9661, allocations: 12 kB / 0.5414 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.9661, allocations: 11.95 kB / 0.5414 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01474/0.9808, allocations: 10.48 MB / 0.5516 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.9809, allocations: 12.06 kB / 0.5516 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/0.9828, allocations: 436 kB / 0.5521 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002019/0.9848, allocations: 0.8722 MB / 0.5529 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002078/0.985, allocations: 83.91 kB / 0.553 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01783/1.003, allocations: 17.65 MB / 0.5702 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.003, allocations: 7.938 kB / 0.5702 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/1.014, allocations: 6.429 MB / 0.5765 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002918/1.017, allocations: 0.7968 MB / 0.5773 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.019, allocations: 71.98 kB / 0.5774 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002449/1.021, allocations: 131.9 kB / 0.5775 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006352/1.022, allocations: 229.7 kB / 0.5777 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001814/1.022, allocations: 83.98 kB / 0.5778 GB, free: 6.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004156/1.026, allocations: 2.465 MB / 0.5802 GB, free: 3.762 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.026, allocations: 0 / 0.5802 GB, free: 3.762 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005672/1.032, allocations: 1.217 MB / 0.5814 GB, free: 2.547 MB / 414.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.0008653/1.033, allocations: 210.9 kB / 0.5816 GB, free: 2.336 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01489/1.048, allocations: 6.156 MB / 0.5876 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/1.048, allocations: 6 kB / 0.5876 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005222/1.053, allocations: 2.987 MB / 0.5905 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006042/1.059, allocations: 1.124 MB / 0.5916 GB, free: 7.879 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02924/1.088, allocations: 15.63 MB / 0.6069 GB, free: 8.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006812/1.095, allocations: 4.354 MB / 0.6111 GB, free: 3.766 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004093/1.099, allocations: 0.8864 MB / 0.612 GB, free: 2.875 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008555/1.1, allocations: 279.4 kB / 0.6123 GB, free: 2.602 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/1.1, allocations: 0 / 0.6123 GB, free: 2.602 MB / 446.1 MB Notification: Performance of Templates: time 0.2823/1.382, allocations: 59.93 MB / 0.6708 GB, free: 109.5 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)