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.SMR_CurrentSource.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.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 89.89 kB / 16.31 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.001263/0.001263, allocations: 184.8 kB / 17.21 MB, free: 5.902 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.365/1.365, allocations: 205.4 MB / 223.4 MB, free: 5.551 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.0004664/0.0004664, allocations: 8 kB / 280.2 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2075, allocations: 47.57 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03415/0.2417, allocations: 34.96 MB / 362.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02257/0.2644, allocations: 9.805 MB / 372.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008836/0.2732, allocations: 243.1 kB / 372.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006168/0.2794, allocations: 1.674 MB / 374.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.2897, allocations: 3.009 MB / 377.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005372/0.2951, allocations: 1.559 MB / 379 MB, free: 124 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02036/0.3154, allocations: 14.36 MB / 393.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04127/0.3567, allocations: 19.97 MB / 413.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009094/0.3659, allocations: 4.991 MB / 418.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01017/0.3761, allocations: 5.977 MB / 424.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003501/0.3796, allocations: 0.7734 MB / 425.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005612/0.3853, allocations: 1.132 MB / 426.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004774/0.3901, allocations: 2.628 MB / 428.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005255/0.3954, allocations: 2.597 MB / 431.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02539/0.4208, allocations: 22.1 MB / 453.5 MB, free: 5.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4208, allocations: 0 / 453.5 MB, free: 5.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4208, allocations: 3.984 kB / 453.5 MB, free: 5.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007153/0.4215, allocations: 0 / 453.5 MB, free: 5.312 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.3432/0.7647, allocations: 12.98 MB / 466.5 MB, free: 92.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.7648, allocations: 7.875 kB / 466.5 MB, free: 92.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04497/0.8098, allocations: 9.134 MB / 475.6 MB, free: 88.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01313/0.8229, allocations: 7.358 MB / 483 MB, free: 80.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007792/0.8237, allocations: 0.9507 MB / 483.9 MB, free: 79.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004485/0.8282, allocations: 1.245 MB / 485.2 MB, free: 78.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04665/0.8749, allocations: 20.06 MB / 0.4934 GB, free: 58.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006453/0.8756, allocations: 23.73 kB / 0.4934 GB, free: 58.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004613/0.8802, allocations: 0.5182 MB / 0.4939 GB, free: 57.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008009/0.8811, allocations: 0.7333 MB / 0.4947 GB, free: 57.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03656/0.9176, allocations: 18.87 MB / 0.5131 GB, free: 38.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1076/1.025, allocations: 63.57 MB / 0.5752 GB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.223/1.248, allocations: 56.92 MB / 0.6307 GB, free: 148.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007358/1.256, allocations: 4.119 MB / 0.6348 GB, free: 148.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01693/1.273, allocations: 11.39 MB / 0.6459 GB, free: 143.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/1.273, allocations: 75.44 kB / 0.646 GB, free: 143.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 5.781e-06/1.273, allocations: 0 / 0.646 GB, free: 143.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.04077/1.314, allocations: 19.09 MB / 0.6646 GB, free: 135.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/1.314, allocations: 91.28 kB / 0.6647 GB, free: 135.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00898/1.323, allocations: 5.424 MB / 0.67 GB, free: 133.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006433/1.323, allocations: 89.7 kB / 0.6701 GB, free: 133.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002997/1.326, allocations: 5.874 MB / 0.6758 GB, free: 128 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001271/1.328, allocations: 1.379 MB / 0.6772 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007681/1.328, allocations: 163.9 kB / 0.6773 GB, free: 126.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004379/1.329, allocations: 0.6133 MB / 0.6779 GB, free: 126.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004487/1.333, allocations: 3.047 MB / 0.6809 GB, free: 123.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005666/1.339, allocations: 6.724 MB / 0.6874 GB, free: 114.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005999/1.345, allocations: 4.569 MB / 0.6919 GB, free: 110.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.934e-05/1.345, allocations: 40 kB / 0.6919 GB, free: 110.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01785/1.363, allocations: 10.73 MB / 0.7024 GB, free: 99.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/1.363, allocations: 61.41 kB / 0.7025 GB, free: 99.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001881/1.363, allocations: 128.9 kB / 0.7026 GB, free: 99.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/1.366, allocations: 0.9889 MB / 0.7036 GB, free: 98.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005988/1.372, allocations: 1.817 MB / 0.7054 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/1.382, allocations: 9.525 MB / 0.7147 GB, free: 86.37 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00589/1.388, allocations: 447.3 kB / 0.7151 GB, free: 85.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/1.389, allocations: 420 kB / 0.7155 GB, free: 85.52 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008071/1.397, allocations: 4.453 MB / 0.7198 GB, free: 81.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/1.398, allocations: 0.5479 MB / 0.7204 GB, free: 80.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.409, allocations: 6.512 MB / 0.7267 GB, free: 73.94 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/1.409, allocations: 40 kB / 0.7268 GB, free: 73.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/1.409, allocations: 11.98 kB / 0.7268 GB, free: 73.89 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.812e-05/1.409, allocations: 19.94 kB / 0.7268 GB, free: 73.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/1.436, allocations: 15.94 MB / 0.7424 GB, free: 57.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.436, allocations: 4.375 kB / 0.7424 GB, free: 57.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002956/1.439, allocations: 0.7606 MB / 0.7431 GB, free: 57.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/1.441, allocations: 0.7884 MB / 0.7439 GB, free: 56.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002842/1.441, allocations: 83.97 kB / 0.744 GB, free: 56.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007782/1.449, allocations: 8.667 MB / 0.7524 GB, free: 47.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.449, allocations: 4 kB / 0.7524 GB, free: 47.17 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.461, allocations: 9.488 MB / 0.7617 GB, free: 37.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002053/1.463, allocations: 1.099 MB / 0.7628 GB, free: 36.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009927/1.464, allocations: 68 kB / 0.7628 GB, free: 36.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/1.466, allocations: 231.7 kB / 0.7631 GB, free: 36.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004209/1.467, allocations: 258.8 kB / 0.7633 GB, free: 35.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.467, allocations: 116 kB / 0.7634 GB, free: 35.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005208/1.472, allocations: 3.552 MB / 0.7669 GB, free: 32.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.472, allocations: 0 / 0.7669 GB, free: 32.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006963/1.479, allocations: 1.991 MB / 0.7688 GB, free: 30.27 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005831/1.48, allocations: 254.9 kB / 0.7691 GB, free: 30.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01175/1.491, allocations: 8.009 MB / 0.7769 GB, free: 21.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.491, allocations: 4 kB / 0.7769 GB, free: 21.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005024/1.496, allocations: 3.53 MB / 0.7803 GB, free: 18.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007267/1.504, allocations: 1.258 MB / 0.7816 GB, free: 17.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2305/1.734, allocations: 25.14 MB / 0.8061 GB, free: 158 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01209/1.746, allocations: 7.593 MB / 0.8135 GB, free: 156.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008066/1.754, allocations: 2.356 MB / 0.8158 GB, free: 155.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001802/1.756, allocations: 435.9 kB / 0.8162 GB, free: 155.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/1.756, allocations: 2.156 kB / 0.8162 GB, free: 155.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1091/1.865, allocations: 73.14 MB / 0.8877 GB, free: 86.39 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)