Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.004802/0.004801, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001127/0.001127, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.314/1.314, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001183/0.001183, allocations: 47.92 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09607, allocations: 46.62 MB / 373.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.2322/0.3283, allocations: 25.35 MB / 398.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.3454, allocations: 7.067 MB / 405.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00816/0.3536, allocations: 151.1 kB / 405.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007167/0.3609, allocations: 1.777 MB / 407.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00981/0.3707, allocations: 2.359 MB / 409.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005507/0.3763, allocations: 1.525 MB / 411.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01363/0.3899, allocations: 8.533 MB / 419.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009986/0.3999, allocations: 7.282 MB / 427.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008301/0.4083, allocations: 3.996 MB / 431.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009346/0.4177, allocations: 4.616 MB / 435.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004415/0.4221, allocations: 1.137 MB / 437 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005641/0.4278, allocations: 1.343 MB / 438.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003739/0.4316, allocations: 2.528 MB / 440.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008126/0.4397, allocations: 4.719 MB / 445.6 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0171/0.4568, allocations: 14.71 MB / 460.3 MB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4569, allocations: 0 / 460.3 MB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4569, allocations: 3.938 kB / 460.3 MB, free: 8.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004112/0.4573, allocations: 0 / 460.3 MB, free: 8.246 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.02751/0.4848, allocations: 9.224 MB / 469.5 MB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.4849, allocations: 11.89 kB / 469.5 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009799/0.4947, allocations: 1.732 MB / 471.2 MB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.5058, allocations: 4.746 MB / 476 MB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005119/0.5064, allocations: 0.5341 MB / 476.5 MB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/0.5091, allocations: 0.7072 MB / 477.2 MB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02727/0.5364, allocations: 9.785 MB / 487 MB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002049/0.5366, allocations: 11.89 kB / 487 MB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001207/0.5379, allocations: 296 kB / 487.3 MB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003321/0.5382, allocations: 350.6 kB / 487.7 MB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01845/0.5567, allocations: 8.287 MB / 495.9 MB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06336/0.62, allocations: 30.09 MB / 0.5137 GB, free: 5.504 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01778/0.6379, allocations: 16.08 MB / 0.5294 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006324/0.6442, allocations: 3.019 MB / 0.5324 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/0.663, allocations: 8.047 MB / 0.5402 GB, free: 8.418 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.572e-05/0.6631, allocations: 64.78 kB / 0.5403 GB, free: 8.344 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.831e-06/0.6631, allocations: 0 / 0.5403 GB, free: 8.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=289): time 0.4498/1.113, allocations: 11.57 MB / 0.5516 GB, free: 144.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/1.113, allocations: 88.66 kB / 0.5517 GB, free: 144.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006937/1.12, allocations: 3.641 MB / 0.5552 GB, free: 143 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004659/1.12, allocations: 77.05 kB / 0.5553 GB, free: 142.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/1.123, allocations: 3.178 MB / 0.5584 GB, free: 140.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/1.124, allocations: 0.9952 MB / 0.5594 GB, free: 139.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/1.125, allocations: 0.6445 MB / 0.56 GB, free: 139.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/1.125, allocations: 302 kB / 0.5603 GB, free: 139.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002487/1.128, allocations: 1.484 MB / 0.5617 GB, free: 138.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00323/1.131, allocations: 2.623 MB / 0.5643 GB, free: 136.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00617/1.137, allocations: 4.387 MB / 0.5686 GB, free: 133.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.13e-05/1.137, allocations: 10.34 kB / 0.5686 GB, free: 133.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.009704/1.147, allocations: 5.024 MB / 0.5735 GB, free: 131.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.895e-05/1.147, allocations: 21.06 kB / 0.5735 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-05/1.147, allocations: 36.77 kB / 0.5735 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/1.148, allocations: 405 kB / 0.5739 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003288/1.152, allocations: 0.8612 MB / 0.5748 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/1.157, allocations: 7.966 MB / 0.5826 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/1.162, allocations: 170.1 kB / 0.5827 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006041/1.162, allocations: 174.8 kB / 0.5829 GB, free: 124.2 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.004694/1.167, allocations: 2.132 MB / 0.585 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.168, allocations: 400.6 kB / 0.5853 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006932/1.175, allocations: 4.462 MB / 0.5897 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/1.175, allocations: 26.84 kB / 0.5897 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/1.175, allocations: 11.75 kB / 0.5897 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.443e-05/1.175, allocations: 15.61 kB / 0.5898 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/1.193, allocations: 10.47 MB / 0.6 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/1.193, allocations: 6.5 kB / 0.6 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/1.195, allocations: 445.5 kB / 0.6004 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/1.197, allocations: 0.8738 MB / 0.6013 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002077/1.197, allocations: 83.97 kB / 0.6013 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/1.211, allocations: 17.62 MB / 0.6186 GB, free: 96.08 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.211, allocations: 7.938 kB / 0.6186 GB, free: 96.07 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009581/1.22, allocations: 6.435 MB / 0.6248 GB, free: 89.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.223, allocations: 0.7929 MB / 0.6256 GB, free: 88.61 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007665/1.224, allocations: 67.98 kB / 0.6257 GB, free: 88.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/1.226, allocations: 135.9 kB / 0.6258 GB, free: 88.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005406/1.226, allocations: 225.8 kB / 0.626 GB, free: 88.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.226, allocations: 83.98 kB / 0.6261 GB, free: 88.11 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003692/1.23, allocations: 2.465 MB / 0.6285 GB, free: 85.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.31e-07/1.23, allocations: 0 / 0.6285 GB, free: 85.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006699/1.237, allocations: 1.218 MB / 0.6297 GB, free: 84.45 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.000647/1.237, allocations: 217.4 kB / 0.6299 GB, free: 84.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006803/1.244, allocations: 4.383 MB / 0.6342 GB, free: 79.74 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.244, allocations: 0.5 kB / 0.6342 GB, free: 79.74 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003958/1.248, allocations: 2.979 MB / 0.6371 GB, free: 76.67 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005566/1.254, allocations: 1.115 MB / 0.6382 GB, free: 75.57 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/1.274, allocations: 12.47 MB / 0.6504 GB, free: 63.01 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003497/1.277, allocations: 4.353 MB / 0.6546 GB, free: 58.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003196/1.28, allocations: 0.8903 MB / 0.6555 GB, free: 57.72 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/1.281, allocations: 275.4 kB / 0.6557 GB, free: 57.45 MB / 478.1 MB Notification: Performance of SimCode: time 2.244e-06/1.281, allocations: 0 / 0.6557 GB, free: 57.45 MB / 478.1 MB Notification: Performance of Templates: time 0.09184/1.373, allocations: 57.56 MB / 0.712 GB, free: 15.88 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)