Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00163/0.00163, allocations: 192.5 kB / 16.14 MB, free: 6.66 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.422/1.422, allocations: 205.1 MB / 222 MB, free: 4.719 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.001791/0.001792, allocations: 56.34 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.235, allocations: 46.62 MB / 324.7 MB, free: 2.066 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01632/0.2514, allocations: 14.93 MB / 339.6 MB, free: 5.281 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.2627, allocations: 5.056 MB / 344.7 MB, free: 216 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003797/0.2665, allocations: 79.69 kB / 344.7 MB, free: 136 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003925/0.2705, allocations: 0.9209 MB / 345.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005578/0.2761, allocations: 1.143 MB / 346.8 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002761/0.2789, allocations: 0.8114 MB / 347.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006027/0.2849, allocations: 3.756 MB / 351.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003725/0.2887, allocations: 2.731 MB / 354.1 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002439/0.2911, allocations: 1.436 MB / 355.5 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.2941, allocations: 1.918 MB / 357.5 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006724/0.2948, allocations: 288 kB / 357.7 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.2964, allocations: 0.5114 MB / 358.3 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009033/0.2973, allocations: 0.9422 MB / 359.2 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.2995, allocations: 1.835 MB / 361 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006085/0.3056, allocations: 6.048 MB / 367.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3057, allocations: 0 / 367.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3057, allocations: 0 / 367.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000199/0.3059, allocations: 4 kB / 367.1 MB, free: 9.652 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01179/0.3177, allocations: 4.238 MB / 371.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.3177, allocations: 12.03 kB / 371.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003468/0.3212, allocations: 0.6172 MB / 372 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006071/0.3273, allocations: 2.097 MB / 374 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003294/0.3277, allocations: 238.8 kB / 374.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001689/0.3294, allocations: 315.8 kB / 374.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.3412, allocations: 4.043 MB / 378.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.3414, allocations: 7.938 kB / 378.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007836/0.3422, allocations: 124 kB / 378.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002002/0.3424, allocations: 146.2 kB / 378.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007737/0.3501, allocations: 3.374 MB / 382.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02569/0.3758, allocations: 13.35 MB / 395.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004746/0.3806, allocations: 3.958 MB / 399.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/0.3825, allocations: 1.004 MB / 400.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005766/0.3883, allocations: 2.661 MB / 403.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.3883, allocations: 43.5 kB / 403.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.955e-06/0.3883, allocations: 3.938 kB / 403.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01241/0.4008, allocations: 5.991 MB / 409.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.4008, allocations: 64.72 kB / 409.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.4041, allocations: 1.893 MB / 411.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.4043, allocations: 45.7 kB / 411.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4054, allocations: 1.501 MB / 412.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004328/0.4058, allocations: 0.4891 MB / 413.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005379/0.4063, allocations: 331.2 kB / 413.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.4065, allocations: 309.1 kB / 413.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.4077, allocations: 0.7691 MB / 414.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.4095, allocations: 1.375 MB / 416 MB, free: 6.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003196/0.4127, allocations: 2.316 MB / 418.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.56e-05/0.4127, allocations: 4 kB / 418.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004366/0.4171, allocations: 2.47 MB / 420.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.4172, allocations: 16 kB / 420.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/0.4172, allocations: 23.94 kB / 420.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/0.4176, allocations: 118.5 kB / 421 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.4194, allocations: 491.7 kB / 421.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.4206, allocations: 1.315 MB / 422.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4221, allocations: 111.8 kB / 422.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.4222, allocations: 83.98 kB / 423 MB, free: 15.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001619/0.4238, allocations: 0.9929 MB / 424 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004843/0.4243, allocations: 201.5 kB / 424.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.4279, allocations: 1.958 MB / 426.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.4279, allocations: 15.94 kB / 426.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4279, allocations: 0 / 426.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.4279, allocations: 11.97 kB / 426.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/0.4371, allocations: 4.985 MB / 431.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.4371, allocations: 7.922 kB / 431.1 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/0.4385, allocations: 319.8 kB / 431.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003173/0.4388, allocations: 94.53 kB / 431.5 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.439, allocations: 27.98 kB / 431.6 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.44, allocations: 1.284 MB / 432.9 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.4401, allocations: 4 kB / 432.9 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005207/0.4453, allocations: 3.081 MB / 435.9 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.4466, allocations: 450.5 kB / 436.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006189/0.4472, allocations: 31.94 kB / 436.4 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.4484, allocations: 79.91 kB / 436.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.4487, allocations: 85.19 kB / 436.6 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.4488, allocations: 47.98 kB / 436.6 MB, free: 1.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.4514, allocations: 1.285 MB / 437.9 MB, free: 292 kB / 366.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4514, allocations: 3.938 kB / 437.9 MB, free: 288 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00216/0.4536, allocations: 0.5352 MB / 438.4 MB, free: 15.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003813/0.454, allocations: 174.8 kB / 438.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003718/0.4577, allocations: 2.205 MB / 440.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4577, allocations: 0 / 440.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.4594, allocations: 1.17 MB / 442 MB, free: 12.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/0.4625, allocations: 498.8 kB / 442.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.4744, allocations: 7.004 MB / 449.5 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002846/0.4773, allocations: 2.263 MB / 451.7 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002255/0.4796, allocations: 0.5131 MB / 452.3 MB, free: 1.727 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006828/0.4803, allocations: 155.4 kB / 452.4 MB, free: 1.574 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4803, allocations: 0 / 452.4 MB, free: 1.574 MB / 382.1 MB Notification: Performance of Templates: time 0.2113/0.6916, allocations: 25.07 MB / 477.5 MB, free: 96.47 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)