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.01096/0.01096, allocations: 102.8 kB / 15.73 MB, free: 6.484 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.002179/0.002179, allocations: 196.4 kB / 16.68 MB, free: 6.375 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.56/1.56, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.001135/0.001135, allocations: 50.77 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.031/0.1348, allocations: 30.24 MB / 403.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02053/0.1554, allocations: 8.631 MB / 412.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007589/0.1631, allocations: 167.5 kB / 412.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0128/0.1759, allocations: 4.962 MB / 417.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.1868, allocations: 3.035 MB / 420.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005549/0.1924, allocations: 1.613 MB / 421.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01506/0.2074, allocations: 8.703 MB / 430.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02158/0.2291, allocations: 12.83 MB / 443.4 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007385/0.2365, allocations: 4.242 MB / 447.6 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008371/0.2449, allocations: 4.73 MB / 452.3 MB, free: 1.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003635/0.2486, allocations: 1.164 MB / 453.5 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2599/0.5085, allocations: 1.523 MB / 455 MB, free: 23.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005614/0.5141, allocations: 2.403 MB / 457.4 MB, free: 23.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01255/0.5267, allocations: 4.672 MB / 462.1 MB, free: 23.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02029/0.547, allocations: 15.73 MB / 477.8 MB, free: 20.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.547, allocations: 1.375 kB / 477.8 MB, free: 20.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5471, allocations: 0 / 477.8 MB, free: 20.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005069/0.5476, allocations: 1.469 kB / 477.8 MB, free: 20.64 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.03542/0.583, allocations: 9.754 MB / 487.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.5831, allocations: 9.062 kB / 487.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02867/0.6117, allocations: 5.286 MB / 492.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/0.6223, allocations: 4.684 MB / 497.6 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003908/0.6227, allocations: 0.5309 MB / 498.1 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003641/0.6264, allocations: 0.7041 MB / 498.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03398/0.6604, allocations: 11.32 MB / 0.4982 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002873/0.6607, allocations: 15.47 kB / 0.4982 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00266/0.6634, allocations: 302.4 kB / 0.4985 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003613/0.6638, allocations: 446.9 kB / 0.4989 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/0.6901, allocations: 10.81 MB / 0.5095 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08268/0.7729, allocations: 37.58 MB / 0.5461 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02286/0.7958, allocations: 28.11 MB / 0.5736 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005496/0.8013, allocations: 2.666 MB / 0.5762 GB, free: 13 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01741/0.8188, allocations: 7.901 MB / 0.5839 GB, free: 5.062 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.8189, allocations: 56.56 kB / 0.584 GB, free: 5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 6.151e-06/0.8189, allocations: 4 kB / 0.584 GB, free: 4.996 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02296/0.8418, allocations: 10.36 MB / 0.5941 GB, free: 10.63 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002034/0.8439, allocations: 2.013 MB / 0.5961 GB, free: 8.461 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008557/0.8525, allocations: 3.822 MB / 0.5998 GB, free: 4.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007783/0.8533, allocations: 65.7 kB / 0.5999 GB, free: 4.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002988/0.8563, allocations: 3.539 MB / 0.6033 GB, free: 1.031 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/0.8577, allocations: 0.8326 MB / 0.6041 GB, free: 212 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/0.8594, allocations: 0.9568 MB / 0.6051 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.8595, allocations: 305.2 kB / 0.6053 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/0.8623, allocations: 1.891 MB / 0.6072 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004856/0.8672, allocations: 4.391 MB / 0.6115 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009277/0.8765, allocations: 6.787 MB / 0.6181 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.883e-05/0.8767, allocations: 24 kB / 0.6181 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01407/0.8907, allocations: 6.989 MB / 0.625 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.177e-05/0.8908, allocations: 40 kB / 0.625 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/0.891, allocations: 92.66 kB / 0.6251 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.8931, allocations: 0.7358 MB / 0.6258 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/0.8972, allocations: 1.121 MB / 0.6269 GB, free: 7.441 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00751/0.9047, allocations: 5.633 MB / 0.6324 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005921/0.9107, allocations: 311 kB / 0.6327 GB, free: 1.414 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001783/0.9125, allocations: 279.6 kB / 0.633 GB, free: 1.145 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.3365/1.249, allocations: 2.52 MB / 0.6354 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001809/1.251, allocations: 386.3 kB / 0.6358 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/1.262, allocations: 4.27 MB / 0.64 GB, free: 184.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/1.262, allocations: 23.22 kB / 0.64 GB, free: 184.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/1.262, allocations: 7.891 kB / 0.64 GB, free: 184.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.582e-05/1.262, allocations: 11.67 kB / 0.64 GB, free: 184.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02516/1.287, allocations: 14.28 MB / 0.6539 GB, free: 179.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/1.287, allocations: 11.78 kB / 0.654 GB, free: 179.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/1.289, allocations: 484 kB / 0.6544 GB, free: 179.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.291, allocations: 0.6898 MB / 0.6551 GB, free: 179.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/1.291, allocations: 67.41 kB / 0.6552 GB, free: 179.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00773/1.299, allocations: 7.494 MB / 0.6625 GB, free: 174.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001376/1.3, allocations: 1.955 MB / 0.6644 GB, free: 173.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008871/1.309, allocations: 6.742 MB / 0.671 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002183/1.311, allocations: 0.7918 MB / 0.6717 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008134/1.312, allocations: 65.8 kB / 0.6718 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.314, allocations: 165.9 kB / 0.672 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/1.315, allocations: 215.4 kB / 0.6722 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.315, allocations: 93.41 kB / 0.6723 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004252/1.319, allocations: 2.51 MB / 0.6747 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.71e-07/1.319, allocations: 0 / 0.6747 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006788/1.326, allocations: 1.293 MB / 0.676 GB, free: 167.3 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.000791/1.327, allocations: 232.8 kB / 0.6762 GB, free: 167 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008652/1.335, allocations: 5.169 MB / 0.6812 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.163e-05/1.336, allocations: 4 kB / 0.6812 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004229/1.34, allocations: 2.419 MB / 0.6836 GB, free: 160.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006089/1.346, allocations: 0.9837 MB / 0.6846 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/1.368, allocations: 12.31 MB / 0.6966 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004253/1.372, allocations: 4.496 MB / 0.701 GB, free: 142.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004045/1.376, allocations: 1.356 MB / 0.7023 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008494/1.377, allocations: 299.4 kB / 0.7026 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/1.377, allocations: 3.938 kB / 0.7026 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.08321/1.46, allocations: 53.33 MB / 0.7547 GB, free: 87.88 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)