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.004758/0.004758, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001115/0.001115, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.296/1.296, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001202/0.001202, allocations: 51.92 kB / 326.6 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.08074, allocations: 46.62 MB / 373.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2042/0.285, allocations: 40.01 MB / 413.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02519/0.3102, allocations: 10.56 MB / 423.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009766/0.32, allocations: 262 kB / 424 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01987/0.3399, allocations: 8.614 MB / 432.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01264/0.3526, allocations: 3.711 MB / 436.4 MB, free: 268 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006967/0.3596, allocations: 2.384 MB / 438.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01817/0.3778, allocations: 13.43 MB / 452.2 MB, free: 404 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03859/0.4164, allocations: 25.36 MB / 477.5 MB, free: 6.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01053/0.427, allocations: 7.063 MB / 484.6 MB, free: 15.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01252/0.4395, allocations: 8.058 MB / 492.6 MB, free: 7.715 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006293/0.4458, allocations: 1.988 MB / 494.6 MB, free: 5.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008445/0.4543, allocations: 2.386 MB / 497 MB, free: 3.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006272/0.4606, allocations: 4.15 MB / 0.4894 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01347/0.4741, allocations: 7.824 MB / 0.4971 GB, free: 7.324 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03094/0.5051, allocations: 26.42 MB / 0.5229 GB, free: 12.82 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5051, allocations: 0 / 0.5229 GB, free: 12.82 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5051, allocations: 0 / 0.5229 GB, free: 12.82 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007129/0.5058, allocations: 0 / 0.5229 GB, free: 12.82 MB / 462.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.04433/0.5502, allocations: 15.59 MB / 0.5381 GB, free: 13.12 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5502, allocations: 12.02 kB / 0.5381 GB, free: 13.11 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04824/0.5985, allocations: 9.118 MB / 0.547 GB, free: 3.961 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3555/0.9541, allocations: 7.5 MB / 0.5543 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008736/0.955, allocations: 0.9456 MB / 0.5553 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004051/0.959, allocations: 1.243 MB / 0.5565 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04614/1.005, allocations: 20.15 MB / 0.5762 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004515/1.006, allocations: 23.39 kB / 0.5762 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003353/1.009, allocations: 0.514 MB / 0.5767 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008328/1.01, allocations: 0.7329 MB / 0.5774 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03655/1.046, allocations: 18.98 MB / 0.5959 GB, free: 112.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09596/1.142, allocations: 62.64 MB / 0.6571 GB, free: 48.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03073/1.173, allocations: 56.99 MB / 0.7128 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006986/1.18, allocations: 4.09 MB / 0.7168 GB, free: 12.88 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02071/1.201, allocations: 11.33 MB / 0.7278 GB, free: 1.531 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.44e-05/1.201, allocations: 73.31 kB / 0.7279 GB, free: 1.449 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 4.88e-06/1.201, allocations: 3.938 kB / 0.7279 GB, free: 1.445 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2416/1.443, allocations: 18.13 MB / 0.7456 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/1.443, allocations: 92.77 kB / 0.7457 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009437/1.452, allocations: 5.461 MB / 0.751 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006424/1.453, allocations: 87.58 kB / 0.7511 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003268/1.456, allocations: 5.887 MB / 0.7569 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001379/1.458, allocations: 1.377 MB / 0.7582 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002356/1.46, allocations: 1.506 MB / 0.7597 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.921e-05/1.46, allocations: 305.4 kB / 0.76 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004823/1.465, allocations: 3.083 MB / 0.763 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007192/1.472, allocations: 6.75 MB / 0.7696 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/1.485, allocations: 10.59 MB / 0.7799 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002013/1.485, allocations: 36.16 kB / 0.7799 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01672/1.502, allocations: 10.8 MB / 0.7905 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.999e-05/1.502, allocations: 57.44 kB / 0.7905 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/1.502, allocations: 124.6 kB / 0.7907 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002143/1.504, allocations: 0.9723 MB / 0.7916 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005612/1.51, allocations: 1.817 MB / 0.7934 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00957/1.519, allocations: 10.25 MB / 0.8034 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005308/1.525, allocations: 442.9 kB / 0.8038 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007444/1.525, allocations: 421.9 kB / 0.8042 GB, free: 132 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.006238/1.532, allocations: 4.458 MB / 0.8086 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.533, allocations: 0.5437 MB / 0.8091 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009851/1.542, allocations: 6.513 MB / 0.8155 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/1.542, allocations: 46.88 kB / 0.8155 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/1.542, allocations: 8 kB / 0.8155 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-05/1.543, allocations: 25.8 kB / 0.8155 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02266/1.565, allocations: 15.94 MB / 0.8311 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/1.565, allocations: 4 kB / 0.8311 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/1.568, allocations: 0.76 MB / 0.8319 GB, free: 111 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/1.57, allocations: 0.7884 MB / 0.8326 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003162/1.571, allocations: 87.97 kB / 0.8327 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008134/1.579, allocations: 9.341 MB / 0.8418 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.579, allocations: 4 kB / 0.8418 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.591, allocations: 9.53 MB / 0.8511 GB, free: 90.73 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/1.593, allocations: 1.072 MB / 0.8522 GB, free: 89.63 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007128/1.594, allocations: 75.91 kB / 0.8523 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/1.596, allocations: 223.8 kB / 0.8525 GB, free: 89.34 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004916/1.597, allocations: 262.7 kB / 0.8527 GB, free: 89.08 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002393/1.597, allocations: 116 kB / 0.8528 GB, free: 88.96 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004818/1.602, allocations: 3.599 MB / 0.8563 GB, free: 85.39 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.51e-07/1.602, allocations: 0 / 0.8563 GB, free: 85.39 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007668/1.61, allocations: 1.983 MB / 0.8583 GB, free: 83.41 MB / 0.5138 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.0006977/1.61, allocations: 263.6 kB / 0.8585 GB, free: 83.16 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01101/1.621, allocations: 8.068 MB / 0.8664 GB, free: 75.02 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.621, allocations: 0 / 0.8664 GB, free: 75.02 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004767/1.626, allocations: 3.541 MB / 0.8699 GB, free: 71.41 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005199/1.631, allocations: 1.323 MB / 0.8712 GB, free: 70.11 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02845/1.66, allocations: 20.73 MB / 0.8914 GB, free: 49.35 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006061/1.666, allocations: 7.594 MB / 0.8988 GB, free: 41.71 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00549/1.671, allocations: 2.359 MB / 0.9011 GB, free: 39.34 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.673, allocations: 435.3 kB / 0.9015 GB, free: 38.92 MB / 0.5138 GB Notification: Performance of SimCode: time 1.744e-06/1.673, allocations: 0 / 0.9015 GB, free: 38.92 MB / 0.5138 GB Notification: Performance of Templates: time 0.3067/1.979, allocations: 73.81 MB / 0.9736 GB, free: 141.5 MB / 0.5138 GB 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)