Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0008133/0.0008134, allocations: 86.02 kB / 15.06 MB, free: 1.09 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.000891/0.0008911, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0006659/0.0006659, allocations: 12 kB / 278.9 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2353, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03601/0.2714, allocations: 34.94 MB / 361.5 MB, free: 452 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02254/0.294, allocations: 9.805 MB / 371.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007457/0.3015, allocations: 251.1 kB / 371.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007093/0.3086, allocations: 1.674 MB / 373.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.3197, allocations: 3.009 MB / 376.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00603/0.3257, allocations: 1.552 MB / 377.7 MB, free: 100 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02105/0.3468, allocations: 14.36 MB / 392.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0422/0.389, allocations: 19.96 MB / 412.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009139/0.3982, allocations: 5.002 MB / 417.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.4083, allocations: 5.977 MB / 423 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003305/0.4117, allocations: 0.7734 MB / 423.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005716/0.4174, allocations: 1.128 MB / 424.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004756/0.4222, allocations: 2.624 MB / 427.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005507/0.4277, allocations: 2.597 MB / 430.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02335/0.4511, allocations: 22.1 MB / 452.3 MB, free: 5.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.4511, allocations: 4 kB / 452.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4511, allocations: 7.875 kB / 452.3 MB, free: 5.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007062/0.4518, allocations: 0 / 452.3 MB, free: 5.281 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.3431/0.795, allocations: 12.97 MB / 465.2 MB, free: 92.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.795, allocations: 15.75 kB / 465.3 MB, free: 92.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04563/0.8407, allocations: 9.139 MB / 474.4 MB, free: 88.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.8538, allocations: 7.352 MB / 481.8 MB, free: 80.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007371/0.8546, allocations: 0.9447 MB / 482.7 MB, free: 79.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00403/0.8586, allocations: 1.253 MB / 484 MB, free: 78.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04445/0.9031, allocations: 20.06 MB / 0.4922 GB, free: 58.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006239/0.9038, allocations: 19.81 kB / 0.4922 GB, free: 58.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005128/0.9089, allocations: 0.516 MB / 0.4927 GB, free: 57.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007535/0.9097, allocations: 0.7333 MB / 0.4934 GB, free: 57.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03661/0.9463, allocations: 18.87 MB / 0.5119 GB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/1.061, allocations: 63.57 MB / 0.5739 GB, free: 5.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2301/1.291, allocations: 56.9 MB / 0.6295 GB, free: 146 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007197/1.298, allocations: 4.113 MB / 0.6335 GB, free: 145.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01719/1.315, allocations: 11.41 MB / 0.6447 GB, free: 140.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/1.316, allocations: 71.97 kB / 0.6447 GB, free: 140.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 6.202e-06/1.316, allocations: 0 / 0.6447 GB, free: 140.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03605/1.352, allocations: 19.07 MB / 0.6634 GB, free: 133 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/1.352, allocations: 91.88 kB / 0.6635 GB, free: 132.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006808/1.359, allocations: 5.427 MB / 0.6688 GB, free: 130.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005438/1.359, allocations: 85.7 kB / 0.6688 GB, free: 130.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/1.361, allocations: 5.887 MB / 0.6746 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.363, allocations: 1.37 MB / 0.6759 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/1.363, allocations: 152 kB / 0.6761 GB, free: 123.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002742/1.363, allocations: 0.6168 MB / 0.6767 GB, free: 123.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003773/1.367, allocations: 3.053 MB / 0.6797 GB, free: 120.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004762/1.372, allocations: 6.724 MB / 0.6862 GB, free: 111.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005339/1.377, allocations: 4.569 MB / 0.6907 GB, free: 107.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.487e-05/1.377, allocations: 36 kB / 0.6907 GB, free: 107.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01691/1.394, allocations: 10.73 MB / 0.7012 GB, free: 96.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.031e-05/1.394, allocations: 57.56 kB / 0.7013 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002373/1.395, allocations: 132.3 kB / 0.7014 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002164/1.397, allocations: 0.9965 MB / 0.7024 GB, free: 95.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005643/1.402, allocations: 1.813 MB / 0.7041 GB, free: 93.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009/1.411, allocations: 9.531 MB / 0.7134 GB, free: 83.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005759/1.417, allocations: 447.1 kB / 0.7139 GB, free: 82.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.418, allocations: 420 kB / 0.7143 GB, free: 82.55 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.007186/1.426, allocations: 4.457 MB / 0.7186 GB, free: 78.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.427, allocations: 0.5402 MB / 0.7191 GB, free: 77.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009138/1.436, allocations: 6.527 MB / 0.7255 GB, free: 70.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/1.436, allocations: 44 kB / 0.7256 GB, free: 70.92 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/1.436, allocations: 8 kB / 0.7256 GB, free: 70.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/1.436, allocations: 19.92 kB / 0.7256 GB, free: 70.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02619/1.462, allocations: 15.93 MB / 0.7411 GB, free: 54.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.462, allocations: 4 kB / 0.7411 GB, free: 54.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002913/1.465, allocations: 0.7571 MB / 0.7419 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/1.467, allocations: 0.7807 MB / 0.7426 GB, free: 53.37 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003403/1.467, allocations: 87.91 kB / 0.7427 GB, free: 53.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007423/1.475, allocations: 8.664 MB / 0.7512 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.475, allocations: 7.938 kB / 0.7512 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01249/1.487, allocations: 9.495 MB / 0.7605 GB, free: 34.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002829/1.49, allocations: 1.099 MB / 0.7615 GB, free: 33.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000874/1.491, allocations: 72 kB / 0.7616 GB, free: 33.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.493, allocations: 223.8 kB / 0.7618 GB, free: 33.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004303/1.494, allocations: 266.7 kB / 0.7621 GB, free: 32.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.494, allocations: 112 kB / 0.7622 GB, free: 32.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004896/1.499, allocations: 3.564 MB / 0.7657 GB, free: 29.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.499, allocations: 0 / 0.7657 GB, free: 29.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00723/1.506, allocations: 1.983 MB / 0.7676 GB, free: 27.3 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.0005754/1.506, allocations: 255.2 kB / 0.7678 GB, free: 27.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.517, allocations: 8.014 MB / 0.7757 GB, free: 18.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.517, allocations: 64 / 0.7757 GB, free: 18.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004332/1.521, allocations: 3.536 MB / 0.7791 GB, free: 15.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005421/1.526, allocations: 1.248 MB / 0.7803 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2123/1.739, allocations: 25.13 MB / 0.8049 GB, free: 139.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007961/1.747, allocations: 7.597 MB / 0.8123 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006687/1.753, allocations: 2.356 MB / 0.8146 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.755, allocations: 439.1 kB / 0.815 GB, free: 137.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/1.755, allocations: 0 / 0.815 GB, free: 137.3 MB / 462.1 MB Notification: Performance of Templates: time 0.1048/1.859, allocations: 73.14 MB / 0.8865 GB, free: 69.53 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)