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.001404/0.001404, allocations: 109.3 kB / 16.62 MB, free: 6.809 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.001527/0.001528, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.264/1.264, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.00122/0.00122, allocations: 51.92 kB / 279.5 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.0894, allocations: 46.63 MB / 326.2 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04082/0.1303, allocations: 39.28 MB / 365.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02333/0.1537, allocations: 10.39 MB / 375.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00829/0.162, allocations: 247.1 kB / 376.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1841/0.3462, allocations: 8.018 MB / 384.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.3569, allocations: 3.271 MB / 387.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006088/0.363, allocations: 2.193 MB / 389.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01662/0.3796, allocations: 13.44 MB / 403 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04101/0.4207, allocations: 28.8 MB / 431.8 MB, free: 4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0123/0.433, allocations: 7.042 MB / 438.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01372/0.4468, allocations: 8.126 MB / 447 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005533/0.4524, allocations: 1.988 MB / 449 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007835/0.4602, allocations: 2.384 MB / 451.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006096/0.4664, allocations: 4.152 MB / 455.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01474/0.4811, allocations: 7.824 MB / 463.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02887/0.51, allocations: 26.24 MB / 489.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.5101, allocations: 0 / 489.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5101, allocations: 0 / 489.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007081/0.5108, allocations: 4 kB / 489.6 MB, free: 11.2 MB / 398.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.0453/0.5561, allocations: 15.63 MB / 0.4934 GB, free: 11.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.5562, allocations: 12.03 kB / 0.4934 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05008/0.6063, allocations: 9.094 MB / 0.5022 GB, free: 2.535 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/0.6218, allocations: 7.45 MB / 0.5095 GB, free: 11.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008502/0.6227, allocations: 0.9502 MB / 0.5104 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004644/0.6274, allocations: 1.244 MB / 0.5117 GB, free: 8.898 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04723/0.6746, allocations: 20.16 MB / 0.5313 GB, free: 4.711 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005367/0.6752, allocations: 23.8 kB / 0.5314 GB, free: 4.688 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003685/0.6789, allocations: 0.5157 MB / 0.5319 GB, free: 4.184 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007171/0.6796, allocations: 0.7294 MB / 0.5326 GB, free: 3.453 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3378/1.017, allocations: 18.98 MB / 0.5511 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09905/1.117, allocations: 63.41 MB / 0.613 GB, free: 87.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02922/1.146, allocations: 56.99 MB / 0.6687 GB, free: 23.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005654/1.151, allocations: 4.121 MB / 0.6727 GB, free: 19.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/1.168, allocations: 11.37 MB / 0.6838 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/1.168, allocations: 77.25 kB / 0.6839 GB, free: 7.719 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.029e-06/1.168, allocations: 0 / 0.6839 GB, free: 7.719 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.0375/1.206, allocations: 18.12 MB / 0.7016 GB, free: 5.473 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/1.206, allocations: 94.47 kB / 0.7017 GB, free: 5.367 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1866/1.392, allocations: 5.464 MB / 0.707 GB, free: 146.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00085/1.393, allocations: 86.95 kB / 0.7071 GB, free: 146.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004588/1.398, allocations: 5.887 MB / 0.7128 GB, free: 144.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001714/1.399, allocations: 1.375 MB / 0.7142 GB, free: 143.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002446/1.402, allocations: 1.508 MB / 0.7157 GB, free: 142.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.008e-05/1.402, allocations: 304.9 kB / 0.716 GB, free: 142.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004696/1.407, allocations: 3.082 MB / 0.719 GB, free: 141.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006191/1.413, allocations: 6.751 MB / 0.7256 GB, free: 135.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/1.424, allocations: 10.59 MB / 0.7359 GB, free: 127.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002422/1.424, allocations: 35.59 kB / 0.7359 GB, free: 127.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01879/1.443, allocations: 10.8 MB / 0.7465 GB, free: 122.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/1.443, allocations: 63 kB / 0.7465 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/1.444, allocations: 125.1 kB / 0.7467 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/1.446, allocations: 0.9827 MB / 0.7476 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006027/1.452, allocations: 1.814 MB / 0.7494 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009662/1.462, allocations: 10.25 MB / 0.7594 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007258/1.469, allocations: 444.4 kB / 0.7598 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001351/1.47, allocations: 415 kB / 0.7602 GB, free: 115.1 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 (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.008496/1.479, allocations: 4.452 MB / 0.7646 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001448/1.48, allocations: 0.558 MB / 0.7651 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/1.492, allocations: 6.515 MB / 0.7715 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/1.492, allocations: 40 kB / 0.7715 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.692e-05/1.492, allocations: 8 kB / 0.7715 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.426e-05/1.492, allocations: 21.28 kB / 0.7715 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03017/1.522, allocations: 15.97 MB / 0.7871 GB, free: 94.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.523, allocations: 6.906 kB / 0.7871 GB, free: 94.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/1.526, allocations: 0.7571 MB / 0.7879 GB, free: 93.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/1.528, allocations: 0.7924 MB / 0.7887 GB, free: 92.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005337/1.529, allocations: 87.97 kB / 0.7887 GB, free: 92.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008493/1.537, allocations: 9.336 MB / 0.7979 GB, free: 82.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.537, allocations: 7.938 kB / 0.7979 GB, free: 82.74 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/1.551, allocations: 9.538 MB / 0.8072 GB, free: 73.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/1.553, allocations: 1.076 MB / 0.8082 GB, free: 72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/1.555, allocations: 68 kB / 0.8083 GB, free: 71.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003124/1.558, allocations: 223.8 kB / 0.8085 GB, free: 71.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000652/1.559, allocations: 262.7 kB / 0.8088 GB, free: 71.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003634/1.559, allocations: 116 kB / 0.8089 GB, free: 71.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006449/1.566, allocations: 3.595 MB / 0.8124 GB, free: 67.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.566, allocations: 0 / 0.8124 GB, free: 67.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008662/1.574, allocations: 1.991 MB / 0.8143 GB, free: 65.78 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 (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.0009092/1.575, allocations: 253.2 kB / 0.8146 GB, free: 65.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02715/1.602, allocations: 13.51 MB / 0.8278 GB, free: 52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.602, allocations: 4 kB / 0.8278 GB, free: 52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00642/1.609, allocations: 3.533 MB / 0.8312 GB, free: 48.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007739/1.617, allocations: 1.313 MB / 0.8325 GB, free: 47.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.037/1.654, allocations: 26.24 MB / 0.8581 GB, free: 20.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007777/1.661, allocations: 7.598 MB / 0.8655 GB, free: 13.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006345/1.668, allocations: 2.355 MB / 0.8678 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/1.669, allocations: 437.6 kB / 0.8683 GB, free: 10.41 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/1.669, allocations: 0 / 0.8683 GB, free: 10.41 MB / 462.1 MB Notification: Performance of Templates: time 0.2938/1.963, allocations: 78.42 MB / 0.9448 GB, free: 89.45 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)