Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.01013/0.01013, allocations: 98.14 kB / 15.73 MB, free: 6.039 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.002189/0.00219, allocations: 195.5 kB / 16.68 MB, free: 5.969 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.504/1.504, 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.001317/0.001317, allocations: 57.61 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1234, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.04446/0.1679, allocations: 30.24 MB / 403.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02281/0.1908, allocations: 8.639 MB / 412.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008468/0.1993, allocations: 163.5 kB / 412.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01338/0.2127, allocations: 4.891 MB / 417.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0125/0.2253, allocations: 2.96 MB / 420.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006302/0.2316, allocations: 1.609 MB / 421.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01411/0.2457, allocations: 8.703 MB / 430.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02526/0.271, allocations: 12.84 MB / 443.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008332/0.2794, allocations: 4.215 MB / 447.4 MB, free: 6.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01055/0.29, allocations: 4.734 MB / 452.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004398/0.2944, allocations: 1.16 MB / 453.3 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2615/0.5559, allocations: 1.522 MB / 454.9 MB, free: 23.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005586/0.5615, allocations: 2.411 MB / 457.3 MB, free: 23.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01578/0.5773, allocations: 4.669 MB / 461.9 MB, free: 23.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02806/0.6054, allocations: 15.73 MB / 477.7 MB, free: 20.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.6054, allocations: 3.188 kB / 477.7 MB, free: 20.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.6054, allocations: 1.5 kB / 477.7 MB, free: 20.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008035/0.6063, allocations: 0 / 477.7 MB, free: 20.81 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.04215/0.6484, allocations: 9.755 MB / 487.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.6485, allocations: 9.656 kB / 487.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03078/0.6793, allocations: 5.278 MB / 492.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.6934, allocations: 4.685 MB / 497.4 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004572/0.6939, allocations: 0.5382 MB / 497.9 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004374/0.6983, allocations: 0.7037 MB / 498.6 MB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03529/0.7336, allocations: 11.31 MB / 0.498 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003458/0.734, allocations: 20.36 kB / 0.498 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003726/0.7377, allocations: 297.4 kB / 0.4983 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004596/0.7382, allocations: 446.9 kB / 0.4987 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02969/0.7679, allocations: 10.81 MB / 0.5093 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08669/0.8546, allocations: 37.58 MB / 0.546 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02881/0.8835, allocations: 28.11 MB / 0.5734 GB, free: 15.92 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00642/0.8899, allocations: 2.669 MB / 0.576 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02061/0.9106, allocations: 7.899 MB / 0.5838 GB, free: 5.309 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.806e-05/0.9107, allocations: 56.56 kB / 0.5838 GB, free: 5.246 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.839e-06/0.9107, allocations: 0 / 0.5838 GB, free: 5.246 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02317/0.9339, allocations: 10.36 MB / 0.5939 GB, free: 10.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002292/0.9362, allocations: 2.013 MB / 0.5959 GB, free: 8.715 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006844/0.9431, allocations: 3.822 MB / 0.5996 GB, free: 4.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006065/0.9437, allocations: 65.7 kB / 0.5997 GB, free: 4.844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/0.9465, allocations: 3.542 MB / 0.6032 GB, free: 1.281 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.9478, allocations: 0.8331 MB / 0.604 GB, free: 468 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001523/0.9493, allocations: 0.9529 MB / 0.6049 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.9494, allocations: 305.1 kB / 0.6052 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002925/0.9524, allocations: 1.887 MB / 0.607 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004834/0.9572, allocations: 4.395 MB / 0.6113 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008526/0.9657, allocations: 6.786 MB / 0.618 GB, free: 76 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.883e-05/0.9658, allocations: 24 kB / 0.618 GB, free: 52 kB / 0.4981 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01337/0.9792, allocations: 6.99 MB / 0.6248 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.704e-05/0.9793, allocations: 44 kB / 0.6248 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001624/0.9795, allocations: 88 kB / 0.6249 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/0.9816, allocations: 0.7283 MB / 0.6256 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004019/0.9857, allocations: 1.133 MB / 0.6267 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008023/0.9937, allocations: 5.626 MB / 0.6322 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005638/0.9994, allocations: 311 kB / 0.6325 GB, free: 1.652 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.001, allocations: 276 kB / 0.6328 GB, free: 1.383 MB / 0.5137 GB 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.2662/1.267, allocations: 2.521 MB / 0.6353 GB, free: 184.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.268, allocations: 385.8 kB / 0.6356 GB, free: 184.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008937/1.277, allocations: 4.265 MB / 0.6398 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/1.277, allocations: 28.41 kB / 0.6398 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/1.277, allocations: 5.938 kB / 0.6398 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-05/1.277, allocations: 13.2 kB / 0.6398 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02468/1.302, allocations: 14.28 MB / 0.6538 GB, free: 180.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/1.302, allocations: 11.59 kB / 0.6538 GB, free: 180.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/1.304, allocations: 481.6 kB / 0.6543 GB, free: 180.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/1.306, allocations: 0.6908 MB / 0.6549 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002211/1.306, allocations: 67.62 kB / 0.655 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007922/1.314, allocations: 7.496 MB / 0.6623 GB, free: 175.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00144/1.315, allocations: 1.957 MB / 0.6642 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009553/1.325, allocations: 6.742 MB / 0.6708 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002635/1.328, allocations: 0.7906 MB / 0.6716 GB, free: 170 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.329, allocations: 63.42 kB / 0.6716 GB, free: 170 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.331, allocations: 168.6 kB / 0.6718 GB, free: 170 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005175/1.332, allocations: 218 kB / 0.672 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/1.332, allocations: 89.48 kB / 0.6721 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004459/1.336, allocations: 2.513 MB / 0.6745 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.91e-07/1.336, allocations: 0 / 0.6745 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007373/1.344, allocations: 1.289 MB / 0.6758 GB, free: 167.5 MB / 0.5137 GB 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.0007898/1.345, allocations: 236.7 kB / 0.676 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00798/1.353, allocations: 5.17 MB / 0.6811 GB, free: 162.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/1.353, allocations: 1.406 kB / 0.6811 GB, free: 162.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003836/1.356, allocations: 2.418 MB / 0.6834 GB, free: 160.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005953/1.362, allocations: 0.9922 MB / 0.6844 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/1.384, allocations: 12.31 MB / 0.6964 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005697/1.39, allocations: 4.493 MB / 0.7008 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003984/1.394, allocations: 1.364 MB / 0.7021 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007871/1.395, allocations: 299.4 kB / 0.7024 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.062e-06/1.395, allocations: 3.938 kB / 0.7024 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.08572/1.481, allocations: 53.32 MB / 0.7545 GB, free: 88.13 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)