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.008372/0.008372, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002181/0.002181, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.421/1.421, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001384/0.001384, allocations: 48.06 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08597/0.08736, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.0259/0.1133, allocations: 23.71 MB / 396.9 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.1277, allocations: 6.546 MB / 403.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005586/0.1333, allocations: 139.4 kB / 403.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006277/0.1397, allocations: 1.583 MB / 405.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008855/0.1485, allocations: 2.108 MB / 407.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00526/0.1538, allocations: 1.454 MB / 408.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01413/0.168, allocations: 8.076 MB / 416.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01335/0.1814, allocations: 7.146 MB / 424 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006519/0.1879, allocations: 3.809 MB / 427.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008142/0.1961, allocations: 4.425 MB / 432.2 MB, free: 5.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003323/0.1995, allocations: 1.094 MB / 433.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005365/0.2049, allocations: 1.304 MB / 434.6 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003952/0.2089, allocations: 2.427 MB / 437 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008977/0.2179, allocations: 4.528 MB / 441.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2443/0.4622, allocations: 14.21 MB / 455.8 MB, free: 28.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.4623, allocations: 1.078 kB / 455.8 MB, free: 28.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4623, allocations: 0 / 455.8 MB, free: 28.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005918/0.4629, allocations: 3.531 kB / 455.8 MB, free: 28.29 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03484/0.4977, allocations: 9.019 MB / 464.8 MB, free: 25.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.4978, allocations: 15.52 kB / 464.8 MB, free: 25.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/0.5098, allocations: 1.701 MB / 466.5 MB, free: 24.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.5218, allocations: 4.579 MB / 471.1 MB, free: 23.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/0.5224, allocations: 0.5093 MB / 471.6 MB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003123/0.5256, allocations: 0.6817 MB / 472.3 MB, free: 23.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02415/0.5497, allocations: 9.448 MB / 481.7 MB, free: 21.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001837/0.55, allocations: 10.42 kB / 481.7 MB, free: 21.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001136/0.5511, allocations: 287 kB / 482 MB, free: 21.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003018/0.5514, allocations: 332.8 kB / 482.3 MB, free: 21.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/0.5692, allocations: 8.051 MB / 490.4 MB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05081/0.6201, allocations: 28.49 MB / 0.5067 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01581/0.6359, allocations: 16.59 MB / 0.5229 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005057/0.641, allocations: 2.922 MB / 0.5258 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01352/0.6546, allocations: 7.697 MB / 0.5333 GB, free: 9.039 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.6546, allocations: 67.42 kB / 0.5333 GB, free: 8.965 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 4.739e-06/0.6547, allocations: 4 kB / 0.5333 GB, free: 8.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.02293/0.6776, allocations: 11.07 MB / 0.5442 GB, free: 13.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.6777, allocations: 85.5 kB / 0.5442 GB, free: 13.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005208/0.6829, allocations: 3.377 MB / 0.5475 GB, free: 10.15 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003385/0.6833, allocations: 73.7 kB / 0.5476 GB, free: 10.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/0.6854, allocations: 3.123 MB / 0.5507 GB, free: 6.934 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008655/0.6863, allocations: 0.9662 MB / 0.5516 GB, free: 5.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008958/0.6872, allocations: 0.5898 MB / 0.5522 GB, free: 5.387 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.6873, allocations: 309.1 kB / 0.5525 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002301/0.6896, allocations: 1.397 MB / 0.5538 GB, free: 3.684 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003098/0.6927, allocations: 2.429 MB / 0.5562 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005597/0.6983, allocations: 4.081 MB / 0.5602 GB, free: 12.39 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/0.6984, allocations: 8 kB / 0.5602 GB, free: 12.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008143/0.7065, allocations: 4.71 MB / 0.5648 GB, free: 7.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.7066, allocations: 16 kB / 0.5648 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-05/0.7066, allocations: 40 kB / 0.5649 GB, free: 7.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.7076, allocations: 400.4 kB / 0.5652 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.7105, allocations: 0.7905 MB / 0.566 GB, free: 6.586 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006951/0.7175, allocations: 7.971 MB / 0.5738 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/0.7208, allocations: 156 kB / 0.5739 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004171/0.7213, allocations: 156 kB / 0.5741 GB, free: 13.8 MB / 478.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.004087/0.7254, allocations: 2.068 MB / 0.5761 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008703/0.7263, allocations: 389.5 kB / 0.5765 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007684/0.734, allocations: 4.208 MB / 0.5806 GB, free: 7.109 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.734, allocations: 34.19 kB / 0.5806 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.785e-05/0.7341, allocations: 12 kB / 0.5806 GB, free: 7.066 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.16e-05/0.7341, allocations: 19.88 kB / 0.5807 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/0.7512, allocations: 9.882 MB / 0.5903 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.7513, allocations: 4 kB / 0.5903 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/0.7531, allocations: 400.7 kB / 0.5907 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00219/0.7553, allocations: 0.8606 MB / 0.5915 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002388/0.7555, allocations: 71.97 kB / 0.5916 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/0.7735, allocations: 17.51 MB / 0.6087 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.7735, allocations: 4 kB / 0.6087 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/0.7841, allocations: 6.053 MB / 0.6146 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/0.7865, allocations: 0.7601 MB / 0.6154 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007649/0.7873, allocations: 63.98 kB / 0.6154 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/0.789, allocations: 131.9 kB / 0.6155 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005008/0.7896, allocations: 206.9 kB / 0.6157 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001719/0.7897, allocations: 79.97 kB / 0.6158 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00353/0.7933, allocations: 2.294 MB / 0.6181 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.7933, allocations: 0 / 0.6181 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004449/0.7977, allocations: 1.141 MB / 0.6192 GB, free: 14.5 MB / 0.5137 GB 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.0006049/0.7984, allocations: 211.4 kB / 0.6194 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00692/0.8053, allocations: 4.134 MB / 0.6234 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.8053, allocations: 0.9375 kB / 0.6234 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004551/0.8099, allocations: 2.868 MB / 0.6262 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004973/0.8149, allocations: 1.006 MB / 0.6272 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2381/1.053, allocations: 12.17 MB / 0.6391 GB, free: 188.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00536/1.058, allocations: 4.226 MB / 0.6432 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00304/1.061, allocations: 0.8382 MB / 0.644 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008519/1.062, allocations: 253.2 kB / 0.6443 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.273e-06/1.062, allocations: 2.25 kB / 0.6443 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.08022/1.143, allocations: 53.35 MB / 0.6964 GB, free: 147 MB / 0.5137 GB 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)