Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001281/0.001281, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.368/1.368, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001293/0.001293, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 46.62 MB / 324.9 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02715/0.3032, allocations: 23.37 MB / 348.2 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01704/0.3203, allocations: 6.437 MB / 354.7 MB, free: 6.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006628/0.327, allocations: 135.4 kB / 354.8 MB, free: 6.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006148/0.3332, allocations: 1.34 MB / 356.1 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008976/0.3422, allocations: 1.888 MB / 358 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004324/0.3466, allocations: 1.318 MB / 359.3 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.3577, allocations: 8.298 MB / 367.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009302/0.3671, allocations: 7.165 MB / 374.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006674/0.3738, allocations: 3.625 MB / 378.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007747/0.3816, allocations: 4.379 MB / 382.8 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00317/0.3848, allocations: 1.086 MB / 383.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005366/0.3902, allocations: 1.304 MB / 385.2 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004627/0.3948, allocations: 2.431 MB / 387.6 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0105/0.4054, allocations: 4.501 MB / 392.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01719/0.4226, allocations: 14.01 MB / 406.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4227, allocations: 4 kB / 406.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4227, allocations: 0 / 406.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003964/0.4231, allocations: 0 / 406.1 MB, free: 2.473 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02798/0.4511, allocations: 8.833 MB / 415 MB, free: 9.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.4511, allocations: 11.89 kB / 415 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.4613, allocations: 1.678 MB / 416.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.4732, allocations: 4.408 MB / 421.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007247/0.474, allocations: 0.5221 MB / 421.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003044/0.4771, allocations: 0.6833 MB / 422.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02732/0.5044, allocations: 9.435 MB / 431.7 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003207/0.5048, allocations: 11.89 kB / 431.7 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00199/0.5068, allocations: 284 kB / 432 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003555/0.5072, allocations: 330.2 kB / 432.3 MB, free: 8.039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01952/0.5267, allocations: 8.051 MB / 440.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.262/0.7888, allocations: 28.78 MB / 469.2 MB, free: 90.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.013/0.8018, allocations: 16.59 MB / 485.8 MB, free: 75.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004532/0.8064, allocations: 2.938 MB / 488.7 MB, free: 74.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/0.8186, allocations: 7.723 MB / 496.4 MB, free: 69.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.8187, allocations: 59.73 kB / 496.5 MB, free: 69.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 6.352e-06/0.8187, allocations: 1.969 kB / 496.5 MB, free: 69.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02036/0.8391, allocations: 11 MB / 0.4956 GB, free: 61.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.8392, allocations: 77.5 kB / 0.4957 GB, free: 61.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.8437, allocations: 3.381 MB / 0.499 GB, free: 57.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003089/0.8441, allocations: 69.7 kB / 0.499 GB, free: 57.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.8454, allocations: 3.042 MB / 0.502 GB, free: 54.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.846, allocations: 0.9151 MB / 0.5029 GB, free: 53.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008533/0.8469, allocations: 0.5857 MB / 0.5035 GB, free: 53.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.8469, allocations: 306.6 kB / 0.5037 GB, free: 53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/0.8489, allocations: 1.397 MB / 0.5051 GB, free: 51.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/0.8511, allocations: 2.429 MB / 0.5075 GB, free: 48.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00464/0.8558, allocations: 4.078 MB / 0.5115 GB, free: 44.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.268e-05/0.8558, allocations: 12 kB / 0.5115 GB, free: 44.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007361/0.8632, allocations: 4.7 MB / 0.5161 GB, free: 39.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.8633, allocations: 26.91 kB / 0.5161 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.637e-05/0.8633, allocations: 32 kB / 0.5161 GB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009395/0.8643, allocations: 401.5 kB / 0.5165 GB, free: 38.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/0.867, allocations: 0.7917 MB / 0.5173 GB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005524/0.8725, allocations: 7.97 MB / 0.5251 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.8758, allocations: 156 kB / 0.5252 GB, free: 29.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004412/0.8763, allocations: 156 kB / 0.5254 GB, free: 29.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * 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,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004563/0.8808, allocations: 2.074 MB / 0.5274 GB, free: 27.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/0.882, allocations: 371.4 kB / 0.5277 GB, free: 26.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007321/0.8893, allocations: 4.219 MB / 0.5319 GB, free: 22.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.8893, allocations: 31.94 kB / 0.5319 GB, free: 22.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.738e-05/0.8894, allocations: 19.94 kB / 0.5319 GB, free: 22.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.477e-05/0.8894, allocations: 15.94 kB / 0.5319 GB, free: 22.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01839/0.9078, allocations: 9.86 MB / 0.5416 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.9079, allocations: 4 kB / 0.5416 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.9095, allocations: 403.5 kB / 0.5419 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.9116, allocations: 0.8596 MB / 0.5428 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/0.9118, allocations: 79.97 kB / 0.5429 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01579/0.9276, allocations: 17.51 MB / 0.56 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/0.9277, allocations: 11.94 kB / 0.56 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/0.9392, allocations: 6.024 MB / 0.5658 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/0.9416, allocations: 0.7425 MB / 0.5666 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/0.943, allocations: 64.17 kB / 0.5666 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002481/0.9455, allocations: 131.9 kB / 0.5668 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006264/0.9461, allocations: 205.6 kB / 0.567 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000276/0.9464, allocations: 83.97 kB / 0.567 GB, free: 1.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005032/0.9515, allocations: 2.286 MB / 0.5693 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9515, allocations: 4 kB / 0.5693 GB, free: 14.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006221/0.9577, allocations: 1.143 MB / 0.5704 GB, free: 13.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * 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,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000941/0.9587, allocations: 211.3 kB / 0.5706 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01507/0.9738, allocations: 5.734 MB / 0.5762 GB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/0.9739, allocations: 0 / 0.5762 GB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005315/0.9792, allocations: 2.857 MB / 0.579 GB, free: 4.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006726/0.9859, allocations: 1.006 MB / 0.58 GB, free: 3.707 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02876/1.015, allocations: 15.01 MB / 0.5946 GB, free: 4.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006946/1.022, allocations: 4.221 MB / 0.5987 GB, free: 400 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004157/1.026, allocations: 0.8365 MB / 0.5996 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.027, allocations: 255.4 kB / 0.5998 GB, free: 15.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/1.027, allocations: 0 / 0.5998 GB, free: 15.3 MB / 446.1 MB Notification: Performance of Templates: time 0.2751/1.302, allocations: 55.45 MB / 0.654 GB, free: 126.2 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)