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.001538/0.001538, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001252/0.001253, allocations: 190.1 kB / 16.25 MB, free: 6.625 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.368/1.368, allocations: 205.1 MB / 222.1 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.001108/0.001108, allocations: 43.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2503, allocations: 46.63 MB / 324.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01683/0.2672, allocations: 14.93 MB / 339.8 MB, free: 5.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.2779, allocations: 5.017 MB / 344.8 MB, free: 108 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003049/0.281, allocations: 83.62 kB / 344.9 MB, free: 24 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003185/0.2843, allocations: 0.9366 MB / 345.8 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004949/0.2893, allocations: 1.123 MB / 346.9 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.2917, allocations: 0.8225 MB / 347.8 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005447/0.2971, allocations: 3.686 MB / 351.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.301, allocations: 3.254 MB / 354.7 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.3036, allocations: 1.659 MB / 356.4 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.3066, allocations: 2.043 MB / 358.4 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007283/0.3073, allocations: 480 kB / 358.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.3089, allocations: 0.695 MB / 359.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.31, allocations: 1.138 MB / 360.7 MB, free: 84 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002507/0.3125, allocations: 2.038 MB / 362.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006494/0.319, allocations: 6.177 MB / 368.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.319, allocations: 0 / 368.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3191, allocations: 0 / 368.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001177/0.3192, allocations: 0 / 368.9 MB, free: 7.84 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.009844/0.329, allocations: 4.238 MB / 373.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.3291, allocations: 15.83 kB / 373.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002791/0.3319, allocations: 0.625 MB / 373.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/0.3354, allocations: 2.086 MB / 375.9 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.3356, allocations: 242.9 kB / 376.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004784/0.3361, allocations: 319.8 kB / 376.4 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00731/0.3435, allocations: 4.043 MB / 380.5 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.955e-05/0.3436, allocations: 8 kB / 380.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.3438, allocations: 124 kB / 380.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001441/0.344, allocations: 146.2 kB / 380.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005536/0.3495, allocations: 3.374 MB / 384.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01977/0.3693, allocations: 13.34 MB / 397.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004064/0.3734, allocations: 3.966 MB / 401.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.3751, allocations: 1.004 MB / 402.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004593/0.3797, allocations: 2.661 MB / 405.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.3797, allocations: 47.5 kB / 405.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.025e-06/0.3797, allocations: 0 / 405.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01135/0.3911, allocations: 5.976 MB / 411.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3912, allocations: 68.72 kB / 411.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002662/0.3939, allocations: 1.897 MB / 413.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.987e-05/0.394, allocations: 49.7 kB / 413.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.3952, allocations: 1.497 MB / 414.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004381/0.3957, allocations: 492.9 kB / 415.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005608/0.3962, allocations: 339.2 kB / 415.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3964, allocations: 309 kB / 415.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.3976, allocations: 0.773 MB / 416.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.3993, allocations: 1.375 MB / 417.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.4022, allocations: 2.312 MB / 420.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.168e-06/0.4023, allocations: 4 kB / 420.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003853/0.4061, allocations: 2.47 MB / 422.7 MB, free: 72 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.4062, allocations: 12 kB / 422.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.4062, allocations: 28 kB / 422.7 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003652/0.4066, allocations: 114.5 kB / 422.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.4084, allocations: 499.2 kB / 423.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.4099, allocations: 1.406 MB / 424.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.4117, allocations: 115.8 kB / 424.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.4118, allocations: 83.98 kB / 424.9 MB, free: 13.68 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.001934/0.4138, allocations: 0.9851 MB / 425.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004191/0.4142, allocations: 201.5 kB / 426.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.4175, allocations: 1.965 MB / 428.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.4175, allocations: 15.94 kB / 428.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.4176, allocations: 3.984 kB / 428.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.4176, allocations: 7.984 kB / 428.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007847/0.4254, allocations: 4.996 MB / 433.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.4255, allocations: 3.984 kB / 433.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.4269, allocations: 315.8 kB / 433.4 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.4272, allocations: 94.47 kB / 433.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.789e-05/0.4273, allocations: 31.98 kB / 433.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009462/0.4282, allocations: 1.375 MB / 434.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.4283, allocations: 7.984 kB / 434.9 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/0.4327, allocations: 3.073 MB / 438 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009655/0.4337, allocations: 450.5 kB / 438.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.434, allocations: 31.98 kB / 438.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009608/0.4349, allocations: 83.97 kB / 438.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.4351, allocations: 93.05 kB / 438.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.048e-05/0.4352, allocations: 40 kB / 438.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001934/0.4372, allocations: 1.285 MB / 439.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4372, allocations: 0 / 439.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001887/0.4391, allocations: 0.5273 MB / 440.5 MB, free: 13.73 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.0004035/0.4395, allocations: 170.9 kB / 440.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005507/0.445, allocations: 2.833 MB / 443.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.445, allocations: 4 kB / 443.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.4466, allocations: 1.178 MB / 444.7 MB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.4491, allocations: 0.5099 MB / 445.2 MB, free: 8.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.4603, allocations: 7.011 MB / 452.2 MB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1823/0.6427, allocations: 2.254 MB / 454.4 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003071/0.6458, allocations: 0.512 MB / 454.9 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008536/0.6467, allocations: 149.8 kB / 455.1 MB, free: 110.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.883e-06/0.6467, allocations: 0 / 455.1 MB, free: 110.4 MB / 382.1 MB Notification: Performance of Templates: time 0.043/0.6897, allocations: 26.03 MB / 481.1 MB, free: 93.29 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)