Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001622/0.001622, allocations: 105.6 kB / 16.62 MB, free: 6.809 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.001924/0.001925, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.354/1.354, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001146/0.001146, allocations: 56.3 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1059, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02441/0.1304, allocations: 23.36 MB / 349.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.1448, allocations: 6.433 MB / 355.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005329/0.1502, allocations: 139.4 kB / 356.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006008/0.1563, allocations: 1.348 MB / 357.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008114/0.1645, allocations: 1.888 MB / 359.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.1694, allocations: 1.318 MB / 360.6 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0128/0.1822, allocations: 8.31 MB / 368.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01283/0.1951, allocations: 7.153 MB / 376.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2192/0.4143, allocations: 3.627 MB / 379.7 MB, free: 17.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008666/0.423, allocations: 4.371 MB / 384.1 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005318/0.4284, allocations: 1.085 MB / 385.2 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008872/0.4373, allocations: 1.31 MB / 386.5 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007408/0.4448, allocations: 2.434 MB / 388.9 MB, free: 16.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01469/0.4595, allocations: 4.502 MB / 393.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.4777, allocations: 14.03 MB / 407.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4777, allocations: 0 / 407.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4777, allocations: 0 / 407.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004901/0.4782, allocations: 0 / 407.5 MB, free: 9.246 MB / 318.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.03356/0.5118, allocations: 8.809 MB / 416.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.554e-05/0.5119, allocations: 13.73 kB / 416.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01241/0.5243, allocations: 1.674 MB / 418 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01162/0.536, allocations: 4.421 MB / 422.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006588/0.5367, allocations: 0.5153 MB / 422.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002775/0.5395, allocations: 0.6844 MB / 423.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0302/0.5697, allocations: 9.441 MB / 433 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003541/0.5701, allocations: 4 kB / 433 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002768/0.5729, allocations: 283.4 kB / 433.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004402/0.5734, allocations: 334.2 kB / 433.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.5984, allocations: 8.055 MB / 441.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07044/0.6689, allocations: 28.8 MB / 470.5 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/0.6866, allocations: 16.58 MB / 487.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006169/0.6929, allocations: 2.936 MB / 490 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01828/0.7112, allocations: 7.724 MB / 497.7 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/0.7113, allocations: 60.59 kB / 497.8 MB, free: 3.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 5.41e-06/0.7113, allocations: 4 kB / 497.8 MB, free: 3.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.028/0.7393, allocations: 10.99 MB / 0.4968 GB, free: 7.777 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.7394, allocations: 77.5 kB / 0.4969 GB, free: 7.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007121/0.7466, allocations: 3.369 MB / 0.5002 GB, free: 4.324 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00074/0.7473, allocations: 69.7 kB / 0.5003 GB, free: 4.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00245/0.7498, allocations: 3.044 MB / 0.5032 GB, free: 1.184 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001322/0.7511, allocations: 0.9139 MB / 0.5041 GB, free: 284 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/0.7523, allocations: 0.5896 MB / 0.5047 GB, free: 15.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7524, allocations: 309 kB / 0.505 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.755, allocations: 1.393 MB / 0.5064 GB, free: 13.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003525/0.7585, allocations: 2.43 MB / 0.5087 GB, free: 11.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007112/0.7656, allocations: 4.079 MB / 0.5127 GB, free: 6.684 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-05/0.7658, allocations: 8 kB / 0.5127 GB, free: 6.676 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01194/0.7777, allocations: 4.698 MB / 0.5173 GB, free: 2.098 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.736e-05/0.7779, allocations: 24.12 kB / 0.5173 GB, free: 2.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-05/0.778, allocations: 35.94 kB / 0.5174 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.7793, allocations: 402.6 kB / 0.5178 GB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/0.7839, allocations: 0.7914 MB / 0.5185 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008598/0.7926, allocations: 7.977 MB / 0.5263 GB, free: 8.406 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/0.7978, allocations: 159.8 kB / 0.5265 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007286/0.7985, allocations: 150.6 kB / 0.5266 GB, free: 8.105 MB / 446.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.00675/0.8053, allocations: 2.078 MB / 0.5287 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/0.8065, allocations: 371.4 kB / 0.529 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008802/0.8154, allocations: 4.214 MB / 0.5331 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/0.8154, allocations: 28 kB / 0.5331 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/0.8154, allocations: 16 kB / 0.5332 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.781e-05/0.8155, allocations: 15.89 kB / 0.5332 GB, free: 1.352 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2655/1.081, allocations: 9.864 MB / 0.5428 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/1.081, allocations: 5 kB / 0.5428 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/1.083, allocations: 396.7 kB / 0.5432 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002533/1.086, allocations: 0.8673 MB / 0.544 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004058/1.086, allocations: 72.89 kB / 0.5441 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/1.103, allocations: 17.52 MB / 0.5612 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/1.103, allocations: 5.125 kB / 0.5612 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.114, allocations: 6.022 MB / 0.5671 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/1.116, allocations: 0.7402 MB / 0.5678 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007556/1.117, allocations: 63.56 kB / 0.5679 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.119, allocations: 134.1 kB / 0.568 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005429/1.119, allocations: 203.3 kB / 0.5682 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/1.119, allocations: 75.8 kB / 0.5683 GB, free: 136 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003401/1.123, allocations: 2.292 MB / 0.5705 GB, free: 135.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.123, allocations: 3.875 kB / 0.5705 GB, free: 135.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004741/1.127, allocations: 1.147 MB / 0.5716 GB, free: 135 MB / 446.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.0006047/1.128, allocations: 203.8 kB / 0.5718 GB, free: 134.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01182/1.14, allocations: 5.734 MB / 0.5774 GB, free: 131.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/1.14, allocations: 4 kB / 0.5774 GB, free: 131.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004041/1.144, allocations: 2.855 MB / 0.5802 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005184/1.149, allocations: 1.006 MB / 0.5812 GB, free: 127.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/1.173, allocations: 15.01 MB / 0.5959 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004811/1.178, allocations: 4.229 MB / 0.6 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003355/1.181, allocations: 0.8326 MB / 0.6008 GB, free: 109.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007461/1.182, allocations: 255.4 kB / 0.6011 GB, free: 109 MB / 446.1 MB Notification: Performance of SimCode: time 2.244e-06/1.182, allocations: 0 / 0.6011 GB, free: 109 MB / 446.1 MB Notification: Performance of Templates: time 0.08443/1.266, allocations: 55.46 MB / 0.6552 GB, free: 53.5 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)