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.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.1_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.1_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.00115/0.00115, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001121/0.001121, allocations: 193.3 kB / 16.25 MB, free: 6.633 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.381/1.381, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.001228/0.001228, allocations: 47.94 kB / 278.3 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.228, allocations: 46.62 MB / 324.9 MB, free: 2.145 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03914/0.2672, allocations: 39.28 MB / 364.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02469/0.2919, allocations: 10.39 MB / 374.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00961/0.3016, allocations: 247.1 kB / 374.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01979/0.3214, allocations: 8.023 MB / 382.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01177/0.3332, allocations: 3.274 MB / 386.1 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00705/0.3403, allocations: 2.203 MB / 388.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0183/0.3586, allocations: 13.43 MB / 401.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04771/0.4064, allocations: 28.68 MB / 430.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01272/0.4191, allocations: 7.027 MB / 437.4 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01242/0.4316, allocations: 8.133 MB / 445.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005657/0.4373, allocations: 1.988 MB / 447.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00766/0.445, allocations: 2.386 MB / 449.9 MB, free: 6.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006985/0.452, allocations: 4.154 MB / 454.1 MB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3491/0.8011, allocations: 7.82 MB / 461.9 MB, free: 42.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0264/0.8275, allocations: 26.24 MB / 488.1 MB, free: 36.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.8276, allocations: 0 / 488.1 MB, free: 36.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.8276, allocations: 0 / 488.1 MB, free: 36.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007725/0.8283, allocations: 3.125 kB / 488.1 MB, free: 36.44 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.04221/0.8706, allocations: 15.63 MB / 0.492 GB, free: 27.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.8706, allocations: 10.56 kB / 0.492 GB, free: 27.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04609/0.9167, allocations: 9.099 MB / 0.5009 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/0.9333, allocations: 7.447 MB / 0.5081 GB, free: 16.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000646/0.9339, allocations: 0.9532 MB / 0.5091 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004291/0.9383, allocations: 1.247 MB / 0.5103 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04498/0.9832, allocations: 20.15 MB / 0.53 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004059/0.9837, allocations: 27.45 kB / 0.53 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003457/0.9871, allocations: 0.5164 MB / 0.5305 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007155/0.9879, allocations: 0.7294 MB / 0.5312 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04009/1.028, allocations: 18.96 MB / 0.5497 GB, free: 6.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1095/1.137, allocations: 63.41 MB / 0.6117 GB, free: 6.176 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2008/1.338, allocations: 56.97 MB / 0.6673 GB, free: 114.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006708/1.345, allocations: 4.11 MB / 0.6713 GB, free: 114 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/1.363, allocations: 11.39 MB / 0.6824 GB, free: 111.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/1.363, allocations: 76.97 kB / 0.6825 GB, free: 111.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 5.5e-06/1.363, allocations: 3.906 kB / 0.6825 GB, free: 111.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03184/1.394, allocations: 18.13 MB / 0.7002 GB, free: 103.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/1.395, allocations: 98.09 kB / 0.7003 GB, free: 103.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006902/1.401, allocations: 5.454 MB / 0.7056 GB, free: 101.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000606/1.402, allocations: 89.7 kB / 0.7057 GB, free: 101.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002511/1.405, allocations: 5.882 MB / 0.7115 GB, free: 96.19 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.406, allocations: 1.376 MB / 0.7128 GB, free: 94.96 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/1.408, allocations: 1.509 MB / 0.7143 GB, free: 93.57 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/1.408, allocations: 301.1 kB / 0.7146 GB, free: 93.28 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/1.411, allocations: 3.083 MB / 0.7176 GB, free: 90.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005015/1.416, allocations: 6.76 MB / 0.7242 GB, free: 82.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009357/1.426, allocations: 10.59 MB / 0.7345 GB, free: 70.54 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.034e-05/1.426, allocations: 36 kB / 0.7346 GB, free: 70.51 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01657/1.442, allocations: 10.79 MB / 0.7451 GB, free: 59.65 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.62e-05/1.443, allocations: 64.06 kB / 0.7452 GB, free: 59.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/1.443, allocations: 124 kB / 0.7453 GB, free: 59.47 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/1.445, allocations: 0.9846 MB / 0.7462 GB, free: 58.47 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005887/1.451, allocations: 1.809 MB / 0.748 GB, free: 56.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009419/1.46, allocations: 10.25 MB / 0.758 GB, free: 45.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006414/1.467, allocations: 446.2 kB / 0.7584 GB, free: 45.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/1.468, allocations: 420 kB / 0.7588 GB, free: 45.15 MB / 478.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 (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008219/1.476, allocations: 4.459 MB / 0.7632 GB, free: 40.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/1.478, allocations: 0.544 MB / 0.7637 GB, free: 40.12 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/1.49, allocations: 6.516 MB / 0.7701 GB, free: 33.56 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.509e-05/1.49, allocations: 43.98 kB / 0.7701 GB, free: 33.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-05/1.49, allocations: 8 kB / 0.7701 GB, free: 33.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-05/1.49, allocations: 19.92 kB / 0.7702 GB, free: 33.49 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/1.528, allocations: 15.96 MB / 0.7857 GB, free: 17.49 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/1.528, allocations: 8.375 kB / 0.7858 GB, free: 17.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003591/1.532, allocations: 0.7567 MB / 0.7865 GB, free: 16.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/1.534, allocations: 0.8038 MB / 0.7873 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006435/1.534, allocations: 79.98 kB / 0.7874 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008939/1.543, allocations: 9.352 MB / 0.7965 GB, free: 6.066 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.543, allocations: 4 kB / 0.7965 GB, free: 6.062 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2156/1.759, allocations: 9.529 MB / 0.8058 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003501/1.763, allocations: 1.073 MB / 0.8068 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001932/1.765, allocations: 77 kB / 0.8069 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004203/1.769, allocations: 219.2 kB / 0.8071 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/1.77, allocations: 261.7 kB / 0.8074 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007528/1.771, allocations: 111 kB / 0.8075 GB, free: 151.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009748/1.781, allocations: 3.606 MB / 0.811 GB, free: 151.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.781, allocations: 2.5 kB / 0.811 GB, free: 151.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009864/1.79, allocations: 1.979 MB / 0.8129 GB, free: 151.6 MB / 478.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 (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000988/1.791, allocations: 256.2 kB / 0.8132 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02675/1.818, allocations: 13.52 MB / 0.8264 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.818, allocations: 3.938 kB / 0.8264 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004725/1.823, allocations: 3.539 MB / 0.8298 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005996/1.829, allocations: 1.305 MB / 0.8311 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03751/1.867, allocations: 26.23 MB / 0.8567 GB, free: 128.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008401/1.875, allocations: 7.602 MB / 0.8642 GB, free: 122.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006449/1.881, allocations: 2.356 MB / 0.8665 GB, free: 120.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/1.883, allocations: 433.9 kB / 0.8669 GB, free: 120.4 MB / 478.1 MB Notification: Performance of SimCode: time 6.91e-07/1.883, allocations: 0 / 0.8669 GB, free: 120.4 MB / 478.1 MB Notification: Performance of Templates: time 0.1243/2.007, allocations: 78.43 MB / 0.9435 GB, free: 45.64 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)