Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001556/0.001556, allocations: 111 kB / 17.06 MB, free: 5.965 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.001767/0.001767, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.581/1.581, allocations: 205.1 MB / 223.9 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.00137/0.00137, allocations: 47.94 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2398/0.3492, allocations: 30.23 MB / 404.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.3718, allocations: 8.643 MB / 413.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00913/0.381, allocations: 169.5 kB / 413.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01357/0.3946, allocations: 4.895 MB / 418.4 MB, free: 20 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01238/0.407, allocations: 2.955 MB / 421.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005762/0.4128, allocations: 1.616 MB / 423 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01501/0.4278, allocations: 8.703 MB / 431.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01692/0.4448, allocations: 12.84 MB / 444.6 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007806/0.4527, allocations: 4.238 MB / 448.8 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007538/0.4602, allocations: 4.733 MB / 453.5 MB, free: 496 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002878/0.4631, allocations: 1.164 MB / 454.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004823/0.468, allocations: 1.519 MB / 456.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002444/0.4704, allocations: 2.412 MB / 458.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007829/0.4783, allocations: 4.669 MB / 463.3 MB, free: 6.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01972/0.498, allocations: 15.73 MB / 479 MB, free: 6.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4981, allocations: 0 / 479 MB, free: 6.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4981, allocations: 0 / 479 MB, free: 6.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005662/0.4986, allocations: 0 / 479 MB, free: 6.918 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.03525/0.5339, allocations: 9.755 MB / 488.8 MB, free: 13.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.534, allocations: 8.031 kB / 488.8 MB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02978/0.5638, allocations: 5.278 MB / 494.1 MB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01516/0.579, allocations: 4.691 MB / 498.8 MB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007934/0.5798, allocations: 0.5338 MB / 499.3 MB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005567/0.5854, allocations: 0.7029 MB / 500 MB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03669/0.6221, allocations: 11.32 MB / 0.4993 GB, free: 6.355 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005446/0.6227, allocations: 15.91 kB / 0.4993 GB, free: 6.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003724/0.6264, allocations: 300 kB / 0.4996 GB, free: 6.047 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007244/0.6272, allocations: 446.9 kB / 0.5 GB, free: 5.609 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02809/0.6553, allocations: 10.82 MB / 0.5106 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08015/0.7355, allocations: 37.58 MB / 0.5473 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2617/0.9973, allocations: 28.09 MB / 0.5747 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006065/1.003, allocations: 2.663 MB / 0.5773 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01762/1.021, allocations: 7.907 MB / 0.5851 GB, free: 111.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/1.021, allocations: 60.88 kB / 0.5851 GB, free: 111.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 5.901e-06/1.021, allocations: 0 / 0.5851 GB, free: 111.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02259/1.044, allocations: 10.36 MB / 0.5952 GB, free: 107.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002077/1.046, allocations: 2.01 MB / 0.5972 GB, free: 105.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007155/1.053, allocations: 3.825 MB / 0.6009 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005574/1.054, allocations: 63.33 kB / 0.601 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/1.056, allocations: 3.551 MB / 0.6045 GB, free: 101.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/1.057, allocations: 0.8272 MB / 0.6053 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/1.058, allocations: 0.9582 MB / 0.6062 GB, free: 100 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.563e-05/1.058, allocations: 305.1 kB / 0.6065 GB, free: 99.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002401/1.061, allocations: 1.884 MB / 0.6083 GB, free: 99.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003966/1.065, allocations: 4.402 MB / 0.6126 GB, free: 94.93 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007178/1.072, allocations: 6.782 MB / 0.6193 GB, free: 89.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.421e-05/1.072, allocations: 26.34 kB / 0.6193 GB, free: 89.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01152/1.083, allocations: 6.98 MB / 0.6261 GB, free: 86.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/1.084, allocations: 44.22 kB / 0.6261 GB, free: 86.26 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/1.084, allocations: 88 kB / 0.6262 GB, free: 86.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/1.086, allocations: 0.7381 MB / 0.6269 GB, free: 85.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/1.089, allocations: 1.121 MB / 0.628 GB, free: 84.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006285/1.096, allocations: 5.632 MB / 0.6335 GB, free: 78.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005903/1.102, allocations: 310.4 kB / 0.6338 GB, free: 78.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001402/1.103, allocations: 276 kB / 0.6341 GB, free: 78.39 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.006864/1.11, allocations: 2.526 MB / 0.6366 GB, free: 75.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001892/1.112, allocations: 383.2 kB / 0.6369 GB, free: 75.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006986/1.119, allocations: 4.274 MB / 0.6411 GB, free: 71.18 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.119, allocations: 24 kB / 0.6411 GB, free: 71.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/1.119, allocations: 8 kB / 0.6411 GB, free: 71.15 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/1.119, allocations: 21.53 kB / 0.6412 GB, free: 71.13 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02357/1.142, allocations: 14.28 MB / 0.6551 GB, free: 56.67 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.142, allocations: 8 kB / 0.6551 GB, free: 56.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/1.144, allocations: 483.2 kB / 0.6556 GB, free: 56.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/1.146, allocations: 0.6898 MB / 0.6562 GB, free: 55.49 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/1.146, allocations: 67.98 kB / 0.6563 GB, free: 55.42 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007553/1.154, allocations: 7.492 MB / 0.6636 GB, free: 47.65 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00132/1.155, allocations: 1.954 MB / 0.6655 GB, free: 45.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008994/1.164, allocations: 6.74 MB / 0.6721 GB, free: 38.53 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002802/1.167, allocations: 0.7928 MB / 0.6729 GB, free: 37.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.168, allocations: 59.98 kB / 0.6729 GB, free: 37.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00244/1.171, allocations: 170.6 kB / 0.6731 GB, free: 37.49 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005432/1.171, allocations: 225.3 kB / 0.6733 GB, free: 37.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001998/1.172, allocations: 87.98 kB / 0.6734 GB, free: 37.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004981/1.177, allocations: 2.513 MB / 0.6759 GB, free: 34.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.177, allocations: 0.75 kB / 0.6759 GB, free: 34.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008654/1.185, allocations: 1.288 MB / 0.6771 GB, free: 33.4 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.0008882/1.186, allocations: 226.4 kB / 0.6773 GB, free: 33.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007709/1.194, allocations: 5.175 MB / 0.6824 GB, free: 27.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/1.194, allocations: 192 / 0.6824 GB, free: 27.95 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003257/1.197, allocations: 2.42 MB / 0.6848 GB, free: 25.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004909/1.202, allocations: 0.9931 MB / 0.6857 GB, free: 24.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/1.222, allocations: 12.31 MB / 0.6977 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003749/1.226, allocations: 4.496 MB / 0.7021 GB, free: 7.484 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004188/1.23, allocations: 1.364 MB / 0.7035 GB, free: 6.117 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007971/1.231, allocations: 299.4 kB / 0.7038 GB, free: 5.824 MB / 478.1 MB Notification: Performance of SimCode: time 1.453e-06/1.231, allocations: 0 / 0.7038 GB, free: 5.824 MB / 478.1 MB Notification: Performance of Templates: time 0.3537/1.585, allocations: 53.58 MB / 0.7561 GB, free: 157.9 MB / 0.4981 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)