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.00524/0.00524, allocations: 103.5 kB / 15.73 MB, free: 6.051 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.001162/0.001162, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.433/1.433, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001177/0.001177, allocations: 45.92 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.08129, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04066/0.122, allocations: 40.01 MB / 413.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0213/0.1433, allocations: 10.54 MB / 423.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006673/0.15, allocations: 259.1 kB / 424 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01955/0.1696, allocations: 8.613 MB / 432.6 MB, free: 5.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01289/0.1826, allocations: 3.71 MB / 436.3 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006828/0.1894, allocations: 2.389 MB / 438.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01606/0.2055, allocations: 13.44 MB / 452.2 MB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2212/0.4267, allocations: 25.35 MB / 477.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0116/0.4383, allocations: 7.064 MB / 484.6 MB, free: 2.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01317/0.4516, allocations: 8.188 MB / 492.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004173/0.4558, allocations: 1.993 MB / 494.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006235/0.462, allocations: 2.384 MB / 497.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005379/0.4674, allocations: 4.151 MB / 0.4896 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01239/0.4798, allocations: 7.828 MB / 0.4972 GB, free: 4.668 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03104/0.5109, allocations: 26.44 MB / 0.523 GB, free: 13.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.511, allocations: 0 / 0.523 GB, free: 13.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.511, allocations: 0 / 0.523 GB, free: 13.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007201/0.5117, allocations: 0 / 0.523 GB, free: 13.25 MB / 430.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.04384/0.5556, allocations: 15.6 MB / 0.5382 GB, free: 13.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.5556, allocations: 8.031 kB / 0.5383 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05002/0.6056, allocations: 9.119 MB / 0.5472 GB, free: 4.617 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01656/0.6222, allocations: 7.495 MB / 0.5545 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001027/0.6233, allocations: 0.9434 MB / 0.5554 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004936/0.6283, allocations: 1.25 MB / 0.5566 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05021/0.6785, allocations: 20.15 MB / 0.5763 GB, free: 7.094 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004264/0.679, allocations: 27.73 kB / 0.5763 GB, free: 7.066 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003602/0.6826, allocations: 0.5136 MB / 0.5768 GB, free: 6.566 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00081/0.6834, allocations: 0.7332 MB / 0.5775 GB, free: 5.832 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0403/0.7237, allocations: 18.98 MB / 0.5961 GB, free: 2.848 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.472/1.196, allocations: 62.65 MB / 0.6573 GB, free: 141.3 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03103/1.227, allocations: 56.97 MB / 0.7129 GB, free: 89.01 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005992/1.233, allocations: 4.091 MB / 0.7169 GB, free: 87.54 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01655/1.249, allocations: 11.35 MB / 0.728 GB, free: 82.29 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/1.249, allocations: 75.02 kB / 0.728 GB, free: 82.23 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 4.779e-06/1.249, allocations: 3.938 kB / 0.7281 GB, free: 82.22 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03446/1.284, allocations: 18.13 MB / 0.7458 GB, free: 72.48 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/1.284, allocations: 89.31 kB / 0.7458 GB, free: 72.42 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007121/1.291, allocations: 5.465 MB / 0.7512 GB, free: 69.55 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005195/1.292, allocations: 85.48 kB / 0.7513 GB, free: 69.47 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002694/1.294, allocations: 5.886 MB / 0.757 GB, free: 64.34 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001262/1.296, allocations: 1.381 MB / 0.7584 GB, free: 63.15 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001861/1.298, allocations: 1.507 MB / 0.7598 GB, free: 61.74 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.513e-05/1.298, allocations: 301.1 kB / 0.7601 GB, free: 61.44 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00378/1.301, allocations: 3.083 MB / 0.7631 GB, free: 58.36 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004853/1.306, allocations: 6.747 MB / 0.7697 GB, free: 49.84 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009746/1.316, allocations: 10.59 MB / 0.7801 GB, free: 37.45 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.762e-05/1.316, allocations: 40 kB / 0.7801 GB, free: 37.41 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01555/1.332, allocations: 10.79 MB / 0.7906 GB, free: 26.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.432e-05/1.332, allocations: 60 kB / 0.7907 GB, free: 26.49 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/1.332, allocations: 124 kB / 0.7908 GB, free: 26.37 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/1.334, allocations: 0.9688 MB / 0.7918 GB, free: 25.39 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005376/1.339, allocations: 1.817 MB / 0.7935 GB, free: 23.57 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009984/1.349, allocations: 10.25 MB / 0.8035 GB, free: 12.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/1.356, allocations: 447.3 kB / 0.804 GB, free: 12.46 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/1.357, allocations: 418.7 kB / 0.8044 GB, free: 12.05 MB / 0.5138 GB 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.00804/1.365, allocations: 4.461 MB / 0.8087 GB, free: 7.578 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001795/1.367, allocations: 0.548 MB / 0.8093 GB, free: 7.023 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/1.379, allocations: 6.525 MB / 0.8156 GB, free: 460 kB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/1.379, allocations: 40 kB / 0.8157 GB, free: 420 kB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-05/1.379, allocations: 8 kB / 0.8157 GB, free: 412 kB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.053e-05/1.379, allocations: 23.58 kB / 0.8157 GB, free: 392 kB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03571/1.415, allocations: 15.93 MB / 0.8313 GB, free: 432 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.415, allocations: 4 kB / 0.8313 GB, free: 428 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2197/1.634, allocations: 0.7492 MB / 0.832 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002472/1.637, allocations: 0.7909 MB / 0.8328 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005689/1.637, allocations: 85.48 kB / 0.8329 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009784/1.647, allocations: 9.341 MB / 0.842 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.647, allocations: 3.797 kB / 0.842 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.661, allocations: 9.537 MB / 0.8513 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002349/1.663, allocations: 1.075 MB / 0.8523 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008049/1.664, allocations: 73.33 kB / 0.8524 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/1.667, allocations: 221.5 kB / 0.8526 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005872/1.667, allocations: 263.8 kB / 0.8529 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002406/1.667, allocations: 117.2 kB / 0.853 GB, free: 165 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004986/1.672, allocations: 3.603 MB / 0.8565 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/1.672, allocations: 0 / 0.8565 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006483/1.679, allocations: 1.986 MB / 0.8584 GB, free: 163.6 MB / 0.5294 GB 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.0005224/1.68, allocations: 251.8 kB / 0.8587 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01058/1.69, allocations: 8.069 MB / 0.8666 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/1.69, allocations: 0 / 0.8666 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004553/1.695, allocations: 3.538 MB / 0.87 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005216/1.7, allocations: 1.316 MB / 0.8713 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03378/1.734, allocations: 20.73 MB / 0.8916 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008935/1.743, allocations: 7.596 MB / 0.899 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005615/1.748, allocations: 2.359 MB / 0.9013 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/1.75, allocations: 430 kB / 0.9017 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.183e-06/1.75, allocations: 4 kB / 0.9017 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1118/1.861, allocations: 73.82 MB / 0.9738 GB, free: 65.46 MB / 0.5294 GB 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)