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.005894/0.005894, allocations: 105.3 kB / 15.73 MB, free: 6.047 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.001349/0.001349, allocations: 189.2 kB / 16.67 MB, free: 5.977 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.378/1.378, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00114/0.001141, allocations: 54.5 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09576, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02582/0.1216, allocations: 25.33 MB / 398.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.1371, allocations: 7.067 MB / 405.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005502/0.1427, allocations: 151.4 kB / 405.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0057/0.1484, allocations: 1.793 MB / 407.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009593/0.1581, allocations: 2.349 MB / 409.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004627/0.1627, allocations: 1.524 MB / 411.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01191/0.1746, allocations: 8.538 MB / 419.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01257/0.1872, allocations: 7.274 MB / 427.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006454/0.1937, allocations: 4.003 MB / 431.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007034/0.2008, allocations: 4.616 MB / 435.8 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002385/0.2032, allocations: 1.133 MB / 437 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003402/0.2066, allocations: 1.347 MB / 438.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002452/0.2091, allocations: 2.524 MB / 440.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006713/0.2158, allocations: 4.719 MB / 445.6 MB, free: 8.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2486/0.4644, allocations: 14.71 MB / 460.3 MB, free: 29.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.4645, allocations: 0 / 460.3 MB, free: 29.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4645, allocations: 0 / 460.3 MB, free: 29.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005443/0.4651, allocations: 1.219 kB / 460.3 MB, free: 29.49 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.03662/0.5017, allocations: 9.222 MB / 469.5 MB, free: 26.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5018, allocations: 12.95 kB / 469.5 MB, free: 26.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/0.5147, allocations: 1.739 MB / 471.2 MB, free: 26.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01388/0.5286, allocations: 4.739 MB / 476 MB, free: 25.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006237/0.5293, allocations: 0.539 MB / 476.5 MB, free: 25.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003726/0.5331, allocations: 0.7033 MB / 477.2 MB, free: 25.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03223/0.5653, allocations: 9.792 MB / 487 MB, free: 20.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002351/0.5656, allocations: 3.688 kB / 487 MB, free: 20.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001552/0.5671, allocations: 295.5 kB / 487.3 MB, free: 20 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002795/0.5674, allocations: 352.6 kB / 487.7 MB, free: 19.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01935/0.5868, allocations: 8.29 MB / 495.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.647, allocations: 30.07 MB / 0.5137 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01689/0.6639, allocations: 16.08 MB / 0.5294 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005692/0.6697, allocations: 3.012 MB / 0.5323 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01651/0.6862, allocations: 8.06 MB / 0.5402 GB, free: 4.297 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.676e-05/0.6863, allocations: 64.78 kB / 0.5403 GB, free: 4.223 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 6.643e-06/0.6863, allocations: 0 / 0.5403 GB, free: 4.223 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.03383/0.7202, allocations: 11.58 MB / 0.5516 GB, free: 8.402 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.7203, allocations: 85.03 kB / 0.5517 GB, free: 8.309 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009776/0.7301, allocations: 3.645 MB / 0.5552 GB, free: 4.684 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009145/0.731, allocations: 81.69 kB / 0.5553 GB, free: 4.598 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004433/0.7355, allocations: 3.177 MB / 0.5584 GB, free: 1.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002169/0.7377, allocations: 0.9888 MB / 0.5594 GB, free: 424 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001817/0.7395, allocations: 0.6491 MB / 0.56 GB, free: 15.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.7397, allocations: 305.1 kB / 0.5603 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00475/0.7445, allocations: 1.479 MB / 0.5617 GB, free: 13.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006009/0.7505, allocations: 2.625 MB / 0.5643 GB, free: 10.87 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.7622, allocations: 4.39 MB / 0.5686 GB, free: 6.102 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.175e-05/0.7623, allocations: 8 kB / 0.5686 GB, free: 6.094 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01325/0.7756, allocations: 5.02 MB / 0.5735 GB, free: 1.219 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.7756, allocations: 24 kB / 0.5735 GB, free: 1.195 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.227e-05/0.7757, allocations: 36 kB / 0.5736 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009816/0.7767, allocations: 404.8 kB / 0.5739 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003225/0.7799, allocations: 0.8654 MB / 0.5748 GB, free: 15.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007354/0.7873, allocations: 7.96 MB / 0.5826 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/0.7915, allocations: 175.9 kB / 0.5827 GB, free: 7.301 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007188/0.7923, allocations: 166.2 kB / 0.5829 GB, free: 7.141 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.005066/0.7973, allocations: 2.141 MB / 0.585 GB, free: 5.047 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/0.7991, allocations: 399.1 kB / 0.5854 GB, free: 4.652 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.8118, allocations: 4.449 MB / 0.5897 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.486e-05/0.8119, allocations: 31.94 kB / 0.5897 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.22e-05/0.812, allocations: 12 kB / 0.5897 GB, free: 96 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.969e-05/0.812, allocations: 15.94 kB / 0.5898 GB, free: 80 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03241/0.8445, allocations: 10.48 MB / 0.6 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/0.8445, allocations: 4 kB / 0.6 GB, free: 5.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/0.8476, allocations: 441.7 kB / 0.6004 GB, free: 5.105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/0.8511, allocations: 0.8718 MB / 0.6013 GB, free: 4.215 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004818/0.8516, allocations: 75.97 kB / 0.6013 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02601/0.8776, allocations: 17.62 MB / 0.6185 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/0.8777, allocations: 15.84 kB / 0.6186 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/0.8961, allocations: 6.42 MB / 0.6248 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003436/0.8996, allocations: 0.8007 MB / 0.6256 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002066/0.9017, allocations: 64 kB / 0.6257 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003505/0.9052, allocations: 135.9 kB / 0.6258 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007429/0.906, allocations: 229.1 kB / 0.626 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003498/0.9064, allocations: 87.97 kB / 0.6261 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005784/0.9122, allocations: 2.461 MB / 0.6285 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.01e-07/0.9122, allocations: 0 / 0.6285 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006266/0.9185, allocations: 1.219 MB / 0.6297 GB, free: 6.051 MB / 0.5137 GB 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.0007569/0.9193, allocations: 215.9 kB / 0.6299 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007453/0.9267, allocations: 4.37 MB / 0.6342 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.9267, allocations: 192 / 0.6342 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.2543/1.181, allocations: 2.983 MB / 0.6371 GB, free: 192.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009087/1.19, allocations: 1.125 MB / 0.6382 GB, free: 192.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02842/1.219, allocations: 12.48 MB / 0.6504 GB, free: 188.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/1.223, allocations: 4.343 MB / 0.6546 GB, free: 186.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003583/1.227, allocations: 0.8922 MB / 0.6555 GB, free: 186.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007506/1.228, allocations: 280.2 kB / 0.6558 GB, free: 186.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.232e-06/1.228, allocations: 0 / 0.6558 GB, free: 186.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.09492/1.323, allocations: 57.56 MB / 0.712 GB, free: 135.9 MB / 0.5137 GB 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)