Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008159/0.008159, allocations: 102.2 kB / 15.73 MB, free: 6.008 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.001587/0.001587, allocations: 198.4 kB / 16.68 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.591/1.591, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001178/0.001178, allocations: 51.94 kB / 326.6 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0922/0.09338, allocations: 46.62 MB / 373.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2368/0.3302, allocations: 30.23 MB / 403.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02337/0.3537, allocations: 8.646 MB / 412.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0107/0.3644, allocations: 170.4 kB / 412.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01441/0.3789, allocations: 4.956 MB / 417.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.3913, allocations: 3.027 MB / 420.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006544/0.3979, allocations: 1.618 MB / 421.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01598/0.4139, allocations: 8.71 MB / 430.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02518/0.4391, allocations: 12.83 MB / 443.4 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009437/0.4486, allocations: 4.238 MB / 447.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009406/0.4581, allocations: 4.73 MB / 452.3 MB, free: 332 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004323/0.4624, allocations: 1.164 MB / 453.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008816/0.4713, allocations: 1.519 MB / 455 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005035/0.4764, allocations: 2.412 MB / 457.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01107/0.4875, allocations: 4.676 MB / 462.1 MB, free: 6.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02573/0.5132, allocations: 15.73 MB / 477.8 MB, free: 6.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.818e-06/0.5133, allocations: 0 / 477.8 MB, free: 6.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5133, allocations: 0 / 477.8 MB, free: 6.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005223/0.5138, allocations: 0 / 477.8 MB, free: 6.754 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03486/0.5487, allocations: 9.751 MB / 487.6 MB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.5488, allocations: 8.031 kB / 487.6 MB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03049/0.5793, allocations: 5.274 MB / 492.9 MB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.5924, allocations: 4.699 MB / 497.6 MB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000712/0.5932, allocations: 0.5299 MB / 498.1 MB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003823/0.597, allocations: 0.7068 MB / 498.8 MB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03484/0.6319, allocations: 11.31 MB / 0.4982 GB, free: 6.195 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005087/0.6324, allocations: 23.89 kB / 0.4982 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003239/0.6357, allocations: 292 kB / 0.4985 GB, free: 5.887 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005909/0.6363, allocations: 450.9 kB / 0.4989 GB, free: 5.445 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02776/0.6641, allocations: 10.82 MB / 0.5095 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0825/0.7466, allocations: 37.58 MB / 0.5462 GB, free: 3.902 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2988/1.045, allocations: 28.08 MB / 0.5736 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005892/1.051, allocations: 2.666 MB / 0.5762 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01791/1.069, allocations: 7.903 MB / 0.5839 GB, free: 111.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.432e-05/1.069, allocations: 61.97 kB / 0.584 GB, free: 111.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 5.02e-06/1.069, allocations: 0 / 0.584 GB, free: 111.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02295/1.092, allocations: 10.37 MB / 0.5941 GB, free: 107.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0018/1.094, allocations: 2.008 MB / 0.5961 GB, free: 105.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006338/1.101, allocations: 3.82 MB / 0.5998 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005176/1.101, allocations: 66.73 kB / 0.5998 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002068/1.103, allocations: 3.55 MB / 0.6033 GB, free: 101.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009859/1.104, allocations: 0.8321 MB / 0.6041 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/1.106, allocations: 0.9513 MB / 0.6051 GB, free: 99.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.233e-05/1.106, allocations: 301.1 kB / 0.6053 GB, free: 99.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/1.108, allocations: 1.896 MB / 0.6072 GB, free: 98.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003291/1.111, allocations: 4.388 MB / 0.6115 GB, free: 94.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00642/1.118, allocations: 6.789 MB / 0.6181 GB, free: 89.42 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.392e-05/1.118, allocations: 22.5 kB / 0.6181 GB, free: 89.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01179/1.13, allocations: 6.988 MB / 0.625 GB, free: 86.09 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.57e-05/1.13, allocations: 40 kB / 0.625 GB, free: 86.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/1.13, allocations: 88 kB / 0.6251 GB, free: 85.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/1.132, allocations: 0.7353 MB / 0.6258 GB, free: 85.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00333/1.135, allocations: 1.12 MB / 0.6269 GB, free: 84.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005978/1.141, allocations: 5.64 MB / 0.6324 GB, free: 78.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00452/1.146, allocations: 311.1 kB / 0.6327 GB, free: 78.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007094/1.146, allocations: 272 kB / 0.633 GB, free: 78.16 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004935/1.151, allocations: 2.522 MB / 0.6354 GB, free: 75.63 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/1.152, allocations: 387.4 kB / 0.6358 GB, free: 75.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007555/1.16, allocations: 4.274 MB / 0.64 GB, free: 70.95 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/1.16, allocations: 25.62 kB / 0.64 GB, free: 70.92 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/1.16, allocations: 4 kB / 0.64 GB, free: 70.92 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/1.16, allocations: 15.89 kB / 0.64 GB, free: 70.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02396/1.184, allocations: 14.29 MB / 0.654 GB, free: 56.44 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.184, allocations: 17.62 kB / 0.654 GB, free: 56.42 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/1.186, allocations: 475.2 kB / 0.6544 GB, free: 55.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/1.188, allocations: 0.6892 MB / 0.6551 GB, free: 55.26 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/1.188, allocations: 67.98 kB / 0.6552 GB, free: 55.19 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007441/1.195, allocations: 7.49 MB / 0.6625 GB, free: 47.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001335/1.197, allocations: 1.95 MB / 0.6644 GB, free: 45.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008873/1.206, allocations: 6.744 MB / 0.671 GB, free: 38.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002321/1.208, allocations: 0.7928 MB / 0.6717 GB, free: 37.49 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009117/1.209, allocations: 64.06 kB / 0.6718 GB, free: 37.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0022/1.211, allocations: 167.8 kB / 0.672 GB, free: 37.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004052/1.212, allocations: 217.4 kB / 0.6722 GB, free: 37.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/1.212, allocations: 95.98 kB / 0.6723 GB, free: 36.95 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003586/1.215, allocations: 2.509 MB / 0.6747 GB, free: 34.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.215, allocations: 3.938 kB / 0.6747 GB, free: 34.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006416/1.222, allocations: 1.288 MB / 0.676 GB, free: 33.18 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007612/1.223, allocations: 229.7 kB / 0.6762 GB, free: 32.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007703/1.23, allocations: 5.168 MB / 0.6812 GB, free: 27.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.23, allocations: 4 kB / 0.6812 GB, free: 27.72 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003623/1.234, allocations: 2.417 MB / 0.6836 GB, free: 25.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006072/1.24, allocations: 0.9875 MB / 0.6846 GB, free: 24.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/1.263, allocations: 12.32 MB / 0.6966 GB, free: 11.79 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003743/1.267, allocations: 4.493 MB / 0.701 GB, free: 7.258 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003824/1.271, allocations: 1.36 MB / 0.7023 GB, free: 5.895 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007552/1.272, allocations: 299.4 kB / 0.7026 GB, free: 5.602 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/1.272, allocations: 0 / 0.7026 GB, free: 5.602 MB / 478.1 MB Notification: Performance of Templates: time 0.324/1.596, allocations: 53.32 MB / 0.7547 GB, free: 158 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)