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.005347/0.005347, allocations: 104.5 kB / 15.74 MB, free: 5.984 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.001252, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.333/1.333, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.00118/0.00118, allocations: 54.98 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09958, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01627/0.1159, allocations: 15.11 MB / 388.3 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01061/0.1265, allocations: 5.116 MB / 393.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003967/0.1306, allocations: 83.69 kB / 393.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004008/0.1346, allocations: 1.064 MB / 394.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004847/0.1395, allocations: 1.254 MB / 395.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.1423, allocations: 0.8961 MB / 396.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005269/0.1476, allocations: 3.624 MB / 400.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003809/0.1514, allocations: 3.254 MB / 403.6 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002675/0.1541, allocations: 1.713 MB / 405.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003881/0.158, allocations: 2.047 MB / 407.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002568/0.1606, allocations: 480 kB / 407.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.1635, allocations: 0.6833 MB / 408.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001294/0.1648, allocations: 1.137 MB / 409.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.1676, allocations: 2.042 MB / 411.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006858/0.1745, allocations: 6.258 MB / 417.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1745, allocations: 0 / 417.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1746, allocations: 0 / 417.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001146/0.1747, allocations: 0 / 417.9 MB, free: 4.297 MB / 350.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.01134/0.186, allocations: 4.238 MB / 422.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1861, allocations: 15.83 kB / 422.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002869/0.189, allocations: 0.6134 MB / 422.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.1929, allocations: 2.136 MB / 425 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.1931, allocations: 242.6 kB / 425.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004533/0.1936, allocations: 312 kB / 425.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007124/0.2007, allocations: 4.039 MB / 429.5 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.622e-05/0.2008, allocations: 7.938 kB / 429.5 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002978/0.2011, allocations: 128 kB / 429.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.2013, allocations: 142.2 kB / 429.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005673/0.207, allocations: 3.378 MB / 433.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.2265, allocations: 13.16 MB / 446.3 MB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004205/0.2307, allocations: 3.962 MB / 450.3 MB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.2323, allocations: 0.9879 MB / 451.3 MB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2324/0.4648, allocations: 2.651 MB / 453.9 MB, free: 67.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/0.4648, allocations: 46.56 kB / 454 MB, free: 67.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.857e-06/0.4649, allocations: 0 / 454 MB, free: 67.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.013/0.4779, allocations: 5.981 MB / 460 MB, free: 66.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.478, allocations: 74.72 kB / 460 MB, free: 66.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/0.4812, allocations: 1.889 MB / 461.9 MB, free: 65.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-05/0.4813, allocations: 52.61 kB / 462 MB, free: 65.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.4823, allocations: 1.495 MB / 463.5 MB, free: 64.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003659/0.4827, allocations: 496.1 kB / 464 MB, free: 63.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005368/0.4833, allocations: 332.8 kB / 464.3 MB, free: 63.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.4833, allocations: 303.1 kB / 464.6 MB, free: 63.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.4846, allocations: 0.7706 MB / 465.4 MB, free: 62.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.4861, allocations: 1.383 MB / 466.7 MB, free: 61.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.4886, allocations: 2.313 MB / 469.1 MB, free: 60.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.4887, allocations: 6.875 kB / 469.1 MB, free: 60.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003617/0.4923, allocations: 2.477 MB / 471.5 MB, free: 59.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.4923, allocations: 19.61 kB / 471.6 MB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.4924, allocations: 19.72 kB / 471.6 MB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003189/0.4927, allocations: 108.6 kB / 471.7 MB, free: 59.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.4943, allocations: 0.4915 MB / 472.2 MB, free: 59.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007374/0.495, allocations: 1.411 MB / 473.6 MB, free: 57.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.4964, allocations: 109.7 kB / 473.7 MB, free: 57.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.4965, allocations: 86.47 kB / 473.8 MB, free: 57.77 MB / 382.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.001481/0.498, allocations: 0.9757 MB / 474.8 MB, free: 57.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.4983, allocations: 204.1 kB / 475 MB, free: 57.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.501, allocations: 1.962 MB / 476.9 MB, free: 56.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.501, allocations: 15.62 kB / 476.9 MB, free: 56.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.501, allocations: 0 / 476.9 MB, free: 56.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.501, allocations: 7.031 kB / 476.9 MB, free: 56.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006235/0.5073, allocations: 4.989 MB / 481.9 MB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.5073, allocations: 8 kB / 481.9 MB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.5086, allocations: 311.6 kB / 482.2 MB, free: 53.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000254/0.5088, allocations: 99.34 kB / 482.3 MB, free: 53.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.252e-05/0.5089, allocations: 35.61 kB / 482.4 MB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006121/0.5095, allocations: 1.375 MB / 483.7 MB, free: 52.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5095, allocations: 1.531 kB / 483.7 MB, free: 52.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003218/0.5128, allocations: 3.081 MB / 486.8 MB, free: 48.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/0.5134, allocations: 454.5 kB / 487.3 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.5137, allocations: 27.94 kB / 487.3 MB, free: 48.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008806/0.5145, allocations: 84.59 kB / 487.4 MB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.5147, allocations: 93.12 kB / 487.5 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.75e-05/0.5148, allocations: 35.98 kB / 487.5 MB, free: 48.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001738/0.5165, allocations: 1.285 MB / 488.8 MB, free: 46.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5165, allocations: 0 / 488.8 MB, free: 46.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001791/0.5183, allocations: 0.5326 MB / 489.3 MB, free: 46.41 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.0003292/0.5187, allocations: 172.4 kB / 489.5 MB, free: 46.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002672/0.5213, allocations: 2.217 MB / 491.7 MB, free: 43.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5213, allocations: 4.109 kB / 491.7 MB, free: 43.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5225, allocations: 1.178 MB / 492.9 MB, free: 42.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.5244, allocations: 0.5125 MB / 493.4 MB, free: 42.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00759/0.532, allocations: 5.566 MB / 499 MB, free: 36.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.5334, allocations: 2.266 MB / 0.4895 GB, free: 34.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001536/0.535, allocations: 0.5078 MB / 0.49 GB, free: 33.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/0.5354, allocations: 151.4 kB / 0.4901 GB, free: 33.71 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.5354, allocations: 0 / 0.4901 GB, free: 33.71 MB / 382.1 MB Notification: Performance of Templates: time 0.03886/0.5742, allocations: 26.58 MB / 0.5161 GB, free: 7.105 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)